[cstex] Lua a asymptote
beerb
beerb at frcatel.fri.uniza.sk
Wed May 31 15:20:33 CEST 2017
zdravim,
trochu experimentujem s Lua a chcem to prepojit s asymptote
mohol by mi niekto povedat, preco toto nefunguje:
-----------------------------------------------------------------------------------------------------
\documentclass[a4paper]{article}
\usepackage{luacode}
\usepackage[inline]{asymptote}
\begin{document}
\begin{luacode}
tex.print("\\begin{asy}")
tex.print("import graph;")
tex.print("draw((0,10)--(50,0)--(100,10),green);")
tex.print("\\end{asy}")
\end{luacode}
\end{document}
-----------------------------------------------------------------------------------------------------
a hlasi chybu:
! File ended while scanning use of \next.
<inserted text>
\par
musim tam pridat na konci pred \end{luacode} prikaz
tex.print("\\par"), t.j.
-----------------------------------------------------------------------------------------------------
\documentclass[a4paper]{article}
\usepackage{luacode}
\usepackage[inline]{asymptote}
\begin{document}
\begin{luacode}
tex.print("\\begin{asy}")
tex.print("import graph;")
tex.print("draw((0,10)--(50,0)--(100,10),green);")
tex.print("\\end{asy}")
tex.print("\\par")
\end{luacode}
\end{document}
-----------------------------------------------------------------------------------------------------
a potom to funguje normalne
vdaka beerb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.felk.cvut.cz/pipermail/cstex/attachments/20170531/2abb0147/attachment.html>
More information about the csTeX
mailing list