You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TikZ command loop fails handling LaTeX macros with optional arguments. It gives a cryptic error message (like Did you forget to insert a semicolon). (A “semi-patch” included — it works for the older version of the scan loop.)
Minimal working example (MWE)
(The following example includes also a \global\def chunk to illustrate another functionality of the patch.)
Right now I cannot test with the latest version. I include the patch for the version in TeXLive2021. I expect the first and the third chunks would work in the bleeding-edge version too (they are only 4 LoCs), and the dispatcher would need an extra chunk like
I do not follow: with the given patch, you can use this particular kind of unexpandable “material”. So your statement would be valid only in the past tense.
If you want to perform semantic actions (like assignments) on a path use \pgfextra. Macros with unexpandable material are intentionally unsupported, because you will quickly run into problems with incomplete \if or dangling \else.
Brief outline of the bug
The
TikZ
command loop fails handlingLaTeX
macros with optional arguments. It gives a cryptic error message (likeDid you forget to insert a semicolon
). (A “semi-patch” included — it works for the older version of the scan loop.)Minimal working example (MWE)
(The following example includes also a
\global\def
chunk to illustrate another functionality of the patch.)How to fix
Right now I cannot test with the latest version. I include the patch for the version in
TeXLive2021
. I expect the first and the third chunks would work in the bleeding-edge version too (they are only 4 LoCs), and the dispatcher would need an extra chunk likediff-tikz.code.tex.txt
The text was updated successfully, but these errors were encountered: