Closed jemmybutton closed 2 years ago
This adds the support for several named MetaPost instances in LaTeX mplibcode environment. Respective tests are added to test-luamplib-latex.tex.
mplibcode
test-luamplib-latex.tex
Syntax is like so:
\begin{mplibcode}[instanceName] % some mp code \end{mplibcode}
Behaviour is as follows.
\mplibcodeinherit
btex ... etex
\mplibglobaltextext
\currentmpinstancename
This adds the support for several named MetaPost instances in LaTeX
mplibcode
environment. Respective tests are added totest-luamplib-latex.tex
.Syntax is like so:
Behaviour is as follows.
\mplibcodeinherit
only affects environments with no instance name set (since if a name is set, the code is intended to be reused at some point).btex ... etex
labels still exist separately and require\mplibglobaltextext
\currentmpinstancename
is set