I have a problem with tikzcd.
I want to make the following diagram:
\begin{tikzcd}
G \ar[d, two heads, swap, "\varphi_1"] \ar[r, "\varphi_2"] & F_2 \\
F_1 \ar[ur, dashed, swap, "\varphi"] &
\end{tikzcd}
When I put it in a separate document, it works just as it should. But when I put it into a full document and compile it with MikTex (using Texworks) I get the following error:
! Missing \endcsname inserted.
<to be read again>
\varphi
l.260 \end{tikzcd}
Any ideas what I can do with it?