The answers here have helped me get the PDF to asctually compile, but the product is not what I need just yet Beamer Tikz-cd Problem
I am trying to produce this diagram, which compiles just fine in my thesis, just not in beamer
which in the thesis has the code
\[
\begin{tikzcd}[sep=huge]
\large{\text{Poincaré}} \arrow[r,"\text{C}"] \arrow[rd, red, "\text{E} \hspace{1 em}\circ\hspace{1 em} \text{C}"'] & \large{\text{Galilei}} \arrow[d,"\text{E}"] \\
& \large{\text{Bargmann}}
\end{tikzcd}
\]
In the beamer, I followed some suggestions from the above Stack answer but so far I only have
\[
\begin{tikzcd}[ampersand replacement=\&,sep=huge]
\large{\text{Poincaré}} \arrow[r,"\text{C}"] \arrow[rd, red, "\text{E} \hspace{1 em}\circ\hspace{1 em} \text{C}"'] \& \large{\text{Galilei}} \arrow[d,"\text{E}"] \\
\& \large{\text{Bargmann}}
\end{tikzcd}
\]
and the following errors
\documentclass{beamer} \usepackage{amsmath} \usepackage{tikz-cd} \begin{document} \begin{frame}[t] \frametitle{\dots} \[ \begin{tikzcd}[ampersand replacement=\&,sep=huge] \text{\large{Poincar\'e}} \arrow[r,"\text{C}"] \arrow[rd, red, "\text{E} \hspace{1 em}\circ\hspace{1 em} \text{C}"'] \& \text{\large{Galilei}} \arrow[d,"\text{E}"] \\ \& \text{\large{Bargmann}} \end{tikzcd} \] \end{frame} \end{document}
compiles without error. Can you please provide a minimal document that shows the problems?\usetikzlibrary{babel}
in the preamble. That is, you probably load thebabel
package, and sincetikz-cd
is loading and using thequotes
library, you also need thebabel
TikZ library.\usepackage[utf8]{inputenc}
instead of\usetikzlibrary{babel}
.\usepackage[utf8]{inputenc}
? Probably not. So presumably this does not fix the problem. (Please do not get me wrong, I am also guessing, but since the OP uses\usepackage[czech]{babel}
in other codes, and since adding\usepackage[czech]{babel}
allows me to reproduce the error messages, I feel that there is a chance that my guess is correct.)