Closed AviSteiner closed 3 years ago
&
has a different meaning inside align
, which is conflicting with the meaning inside tikzcd
. You can use the ampersand replacement
option to overwrite the tikz-cd symbol:
\begin{align}
\begin{tikzcd}[ampersand replacement=\&]
{P} \& {Q}
\arrow["{\varphi}", from=1-1, to=1-2, shift left=1]
\arrow["{0}"', from=1-1, to=1-2, shift right=1]
\end{tikzcd}
\end{align}
I'm not sure whether this is something I want to handle inside quiver directly, because I think this is a fairly uncommon use-case (as opposed to using equation
, for instance), and when it is needed, one can perform the ampersand replacement manually.
If you disagree, let me know, and we can discuss a possible solution.
I've opened an issue for ampersand replacement here: https://github.com/varkor/quiver/issues/51, because I think it would be a useful option.
The code
produces the error
When
align
is replaced byequation
, this doesn't happen. Is this a problem with tikzcd or with quiver?