Open mbertucci47 opened 1 year ago
hm yes. I think that counts as "currently incompatible". The tikz code hides the end dollar and so the grabbing code can't find it.
Your second error is a different issue: The problem is that tikzcd is a verbatim-like environment: it wants to change the catcode of &
, and so can't be used as argument in another command. You would get the same error with
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\newcommand\test{\[\begin{tikzcd}
A & B
\end{tikzcd}\]}
\test
\end{document}
Use this instead (see the tikz-cd docu: Issues with active characters):
\DocumentMetadata{testphase={phase-III,math}}
\documentclass{article}
\usepackage{tikz-cd}
\begin{document}
\[\begin{tikzcd}[ampersand replacement=\&,]
A \& B
\end{tikzcd}\]
\end{document}
The math tagging code is incompatible with the tikz library matrix's key
matrix of math nodes
:gives the error
A normal tikz
\matrix
ormatrix of nodes
likeworks fine.
Originally I encountered this because I was trying to determine why the math tagging didn't work with
tikz-cd
(which usesmatrix of math nodes
, I think), however that gives a different error.produces
and
If the tikz-cd incompatibility is more appropriate as a separate issue I can make another.