[luatex] Reusable Code (LuaLaTeX + LuaMPlib)

Dohyun Kim nomosnomos at gmail.com
Fri Jun 2 02:11:10 CEST 2017


2017-06-02 2:00 GMT+09:00 Troy Henderson <thenders at gmail.com>:
> This seems to work beautifully.  Thank you kindly.
>
> Is there a way to "turn off"
>
> \mplibcodeinherit{enable}
> and
> \mplibglobaltextext{enable}
>
> mid-document?  That is, in order to create frame-by-frame animations,
> inheriting code from the previous figure is necessary.  However, once the
> animation is complete, it would be nice to be able to "initialize" MetaPost
> by no longer inheriting the code.
>
> Perhaps, something like \begin[continue]{mplibcode} ... \end{mplibcode}.
>
> Thoughts?
>

\mplibcodeinherit{disable}
\mplibglobaltextext{disable}
will work in the midst of the document as well as in the preamble.

-- 
Dohyun Kim
Seoul, Republic of Korea


More information about the luatex mailing list