summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-12 21:19:46 +0000
committerKarl Berry <karl@freefriends.org>2022-01-12 21:19:46 +0000
commit81b17c3a69bb1b2f93e5ca4b114be5098da9b6d8 (patch)
tree23ee38849c7109b4dc35caeaa05070b6c988e39f /Master/texmf-dist/doc/luatex
parent13f7e67a76bfe1f95e9778a7949e23dbe1acb955 (diff)
luamplib (12jan22)
git-svn-id: svn://tug.org/texlive/trunk@61587 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex')
-rw-r--r--Master/texmf-dist/doc/luatex/luamplib/NEWS6
-rw-r--r--Master/texmf-dist/doc/luatex/luamplib/luamplib.pdfbin153133 -> 153902 bytes
-rw-r--r--Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex7
3 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/luatex/luamplib/NEWS b/Master/texmf-dist/doc/luatex/luamplib/NEWS
index 8f258c41f6b..0a4d0ea0680 100644
--- a/Master/texmf-dist/doc/luatex/luamplib/NEWS
+++ b/Master/texmf-dist/doc/luatex/luamplib/NEWS
@@ -1,5 +1,11 @@
History of the luamplib package
+2022/01/12 2.23.0
+ In parellel with the functionality introduced at previous version,
+ \everymplib (\everyendmplib as well, of course) supports
+ optional argument of named MetaPost instance, affecting only those
+ mplibcode environments of the same name.
+
2022/01/09 2.22.0
* Sergey Slyusarev (@jemmybutton) has suggested and contributed
a new feature for LaTeX mplibcode environment, which now supports
diff --git a/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf b/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf
index aeefe5ca287..58ee697d5f0 100644
--- a/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf
+++ b/Master/texmf-dist/doc/luatex/luamplib/luamplib.pdf
Binary files differ
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 632dae44e67..e3b04413361 100644
--- a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
+++ b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
@@ -169,12 +169,13 @@ diameter:\Dia bp.%
\vskip 2\baselineskip
\mplibcodeinherit{disable}%
+\everymplib[instanceOne]{beginfig(1);}
+\everyendmplib[instanceOne]{endfig;}
+
\begin{mplibcode}[instanceOne]
-beginfig(1);
a := 1cm;
draw fullcircle scaled a;
draw btex a circle with $d=a$ etex shifted (a,0);
-endfig;
\end{mplibcode}%
Current instance name is: \currentmpinstancename \vskip 2\baselineskip
@@ -213,10 +214,8 @@ endfig;
Current instance name is: \currentmpinstancename (should be empty) \vskip 2\baselineskip
\begin{mplibcode}[instanceOne]
-beginfig(1);
draw unitsquare scaled a;
draw btex a square with side $=a$, inherited from the same instance etex shifted (3/2a, 1/2a);
-endfig;
\end{mplibcode}%
Current instance name is: \currentmpinstancename \vskip 2\baselineskip