lualatex / luamplib

generic TeX package - including MetaPost code in LuaTeX documents
http://ctan.org/pkg/luamplib
14 stars 11 forks source link

Change 2.25.0 breaks existing code #117

Closed thruston closed 2 months ago

thruston commented 5 months ago
2023/08/07 2.25.0
    * protect "..." if and only if textextlabel is enabled.

This change breaks a bunch of my existing code. For example

\documentclass[border=5mm]{standalone}
\usepackage{luamplib}
\begin{document}
\begin{mplibcode}
beginfig(1);
label(TEX("\large A"), origin);
endfig;
\end{mplibcode}
\end{document}

This used to compile just fine, but now gives a "! TeX Capacity Exceeded" error expanding "\@setfontsize".

Sure I can add "\mplibtextext{enable}" to the preamble, but why the change?? Previously the "TEX()" macro worked just fine with or without the textext option...

Please can we have the old behaviour back? I would expect mplibtextext to affect only variables passed to "label()" why does it have to affect variables passed to "TEX()"?

thanks Toby

thruston commented 5 months ago

Sorry I meant \mplibtextextlabel{enable}...

dohyunkim commented 5 months ago

Thanks for the report. Surely v2.25.0 has introduced this issue as you have correctly pointed out. I will revert the relevant code and release a new version as soon as possible.

thruston commented 5 months ago

thanks for responding so quickly