When trying to load some libraries in Tikz, using the \usetikzlibrary command, the macro \foreach has the OpTeX definition rather than that of Tikz. Here is an example that fails:
I see that in tikz.opm we have \addto \tikz@startup@env {\let\foreach=\pgffor@foreach}: maybe there is some other Tikz macro that we should modify in the same way.
When trying to load some libraries in Tikz, using the
\usetikzlibrary
command, the macro\foreach
has the OpTeX definition rather than that of Tikz. Here is an example that fails:It doesn't fail if i redefine
\foreach
:I see that in tikz.opm we have
\addto \tikz@startup@env {\let\foreach=\pgffor@foreach}
: maybe there is some other Tikz macro that we should modify in the same way.