Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change 2.25.0 breaks existing code #117

Closed
thruston opened this issue Jan 24, 2024 · 3 comments
Closed

Change 2.25.0 breaks existing code #117

thruston opened this issue Jan 24, 2024 · 3 comments

Comments

@thruston
Copy link

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
Copy link
Author

Sorry I meant \mplibtextextlabel{enable}...

@dohyunkim
Copy link
Contributor

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
Copy link
Author

thanks for responding so quickly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants