diff options
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex index a6c696e6262..57fbafd26ed 100644 --- a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex +++ b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex @@ -20,7 +20,13 @@ beginfig(1); endfig; \end{mplibcode}% B\par +A% \begin{mplibcode} +beginfig(0); +draw origin--(1cm,0) withcolor red; +draw btex g etex withcolor blue; +endfig; + beginfig(18); numeric u; u = 1cm; @@ -33,4 +39,17 @@ label.bot(btex $x$ etex, (2u,0)); label.lft(btex $y$ etex, (0,u)); endfig; \end{mplibcode}% +B\par +A% +\begin{mplibcode} +beginfig(2); +numeric u; u=1cm; +z1=-z2=origin-(u,0); +for i = 1 upto 3: + draw z1..(0, i*u)..z2; + label.top(TEX("$e_{" & decimal(i) & "}$"), (0, i*u)) withcolor blue; +endfor; +endfig; +\end{mplibcode}% +B\par \end{document} |