diff options
author | Karl Berry <karl@freefriends.org> | 2017-06-06 21:48:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-06-06 21:48:32 +0000 |
commit | b2a99323e6605b0822417671e97c8f5ba8ca845a (patch) | |
tree | 8b75ba8bdb36b1ae755f5b9e756cf284e4bbd27b /Master/texmf-dist/doc/luatex | |
parent | b9a2d960ad053d5f69cd566296f5573f8f554380 (diff) |
luamplib (6jun17)
git-svn-id: svn://tug.org/texlive/trunk@44496 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luamplib/NEWS | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf | bin | 159306 -> 160247 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex | 16 | ||||
-rw-r--r-- | Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex | 16 |
4 files changed, 35 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/luatex/luamplib/NEWS b/Master/texmf-dist/doc/luatex/luamplib/NEWS index 4df1e017121..bb0748f463d 100644 --- a/Master/texmf-dist/doc/luatex/luamplib/NEWS +++ b/Master/texmf-dist/doc/luatex/luamplib/NEWS @@ -1,5 +1,10 @@ History of the luamplib package +2017/06/02 2.12.1 + * when \mplibglobaltextext{enable} is declared, metapost variables + containing btex ... etex labels can be inherited across code chunks. + Of course, \mplibcodeinherit should also be switched on. + 2016/03/31 2.11.3 * fix a bug regarding nested mplibcode environments (issue #63) diff --git a/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf b/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf Binary files differindex 737c4fc9b10..63d5616d1e4 100644 --- a/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf +++ b/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf 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 016ac80c846..a500e2181dd 100644 --- a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex +++ b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex @@ -62,7 +62,21 @@ for i = 1 upto 3: endfor; endfig; \end{mplibcode}% -B\par +B\par\leavevmode +\mplibcodeinherit{enable}% +\mplibglobaltextext{enable}% +\everymplib{ beginfig(0);}\everyendmplib{ endfig;}% +\begin{mplibcode} + label(btex $\sqrt{2}$ etex, origin); + draw fullcircle scaled 20; + picture pic; pic := currentpicture; +\end{mplibcode}% +\begin{mplibcode} + currentpicture := pic scaled 2; +\end{mplibcode}% +\everymplib{}\everyendmplib{}% +\mplibcodeinherit{disable}% +\mplibglobaltextext{disable}\par \mplibsetformat{metafun}% \begin{mplibcode} verbatimtex \moveright 0.4\hsize etex diff --git a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex index 1a76f1e857f..d7a8ed90bcc 100644 --- a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex +++ b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-plain.tex @@ -60,7 +60,21 @@ for i = 1 upto 3: endfor; endfig; \endmplibcode -B\par +B\par\leavevmode +\mplibcodeinherit{enable}% +\mplibglobaltextext{enable}% +\everymplib{ beginfig(0);}\everyendmplib{ endfig;}% +\mplibcode + label(btex $\sqrt{2}$ etex, origin); + draw fullcircle scaled 20; + picture pic; pic := currentpicture; +\endmplibcode +\mplibcode + currentpicture := pic scaled 2; +\endmplibcode +\everymplib{}\everyendmplib{}% +\mplibcodeinherit{disable}% +\mplibglobaltextext{disable}\par \mplibsetformat{metafun}% \mplibcode verbatimtex \moveright 0.4\hsize etex |