3

Trying to get samples from this document to work, I made the following minimal document on WriteLaTeX here

\documentclass{beamer}
\usepackage{tikz-cd}
\begin{document}
\begin{frame}{Hello Commutative Diagrams}
  \begin{tikzcd}
    A \arrow{rd} \arrow{r}{\phi} & B \\
    & C
  \end{tikzcd}
\end{frame}
\end{document}

and get error on next-to-last line "Single ampersand used with wrong catcode."

I try removing the ampersands or prepending a backslash to them and get "No shape named tikz@f@1-2-2 is known."

I try leaving in the backslashes before the ampersands and wrapping the tikzcd in {...} and preceding it with a \matrix (m) [matrix of math nodes, row sep=3em, column sep=3em,ampersand replacement=\&], which I snipped from another StackExchange answer, and I get "can't nest pgfmatrix environments yet."

I'm out of ideas.

ShreevatsaR
  • 45,428
  • 10
  • 117
  • 149
Reb.Cabin
  • 457

0 Answers0