The code
\documentclass{article}
\usepackage{program} % from sn-jnl.cls
\usepackage{tikz-cd}
\begin{document}
test
\end{document}
yields the error
Missing \endcsname inserted. ...eoperator{||}{or} {2}{infix} {200}
in file pgfmathparser.code.tex
of my texlive
installation.
The error is gone when the \usepackage
lines are swapped. However, in my actual use case, I cannot change the order, because \usepackage{program}
is part of a publisher's .cls
file that I have to use unaltered.
How can I fix this document without swapping these lines?
I am aware of the answer of Conflict between tikz-pgf and program , but don't know whether this could help me here.
(I can give more details on my environment if needed, but I see this on Windows and Linux.)
\catcode`\|=12
after the package to restore|