diff options
author | Karl Berry <karl@freefriends.org> | 2014-01-20 23:18:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-01-20 23:18:15 +0000 |
commit | 70a9a637489e651f4aee19179e792b79d7ab79f6 (patch) | |
tree | 7a576526987016eb599cf323acfb83e252cfac16 /Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex | |
parent | 2b5c60ccb1ed42479efd6b30e140b111770e7114 (diff) |
luamplib (20jan14)
git-svn-id: svn://tug.org/texlive/trunk@32739 c570f23f-e606-0410-a88d-b1316a301751
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 | 22 |
1 files changed, 20 insertions, 2 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 9df70dd7869..211667504bb 100644 --- a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex +++ b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex @@ -1,5 +1,7 @@ \documentclass{article} \usepackage{luamplib} +\everymplib{ beginfig(0); } +\everyendmplib{ endfig; } \begin{document} \tracingcommands1 A% @@ -15,11 +17,10 @@ A% %% % / 9 C M W a k u DEL %% & 0 : D N X b l v %% ยด 1 ; E O Y c m w -beginfig(1); fill fullcircle scaled 20; %% actual <tab> to make sure it works -endfig; \end{mplibcode}% B\par +\everymplib{}\everyendmplib{}% reset toks A% \begin{mplibcode} verbatimtex \lower.2em etex @@ -74,4 +75,21 @@ circular_shade(bbox p,0,blue,.7white); draw p withcolor white; endfig; \end{mplibcode}% + +\newbox\mympbox +\begin{mplibcode} +verbatimtex \global\setbox\mympbox etex +beginfig(0); +breadth=.667\mpdim\linewidth; +height=2pt; +x1=0; x2=x6=.333x4; x5=x3=.667x4; +x4=breadth; +y1=y4=height/2; y2=y3=height; y5=y6=0; +fill z1--z2--z3--z4--z5--z6--cycle; +endfig; +\end{mplibcode}% +\copy\mympbox +\copy\mympbox +\copy\mympbox +\copy\mympbox \end{document} |