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



![[1]: https://i.stack.imgur.com/PFLFV.png](../../images/a5fbc6613a568a95cf422af6a79cb9a8.webp)
\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? – Jun 08 '20 at 20:07\usetikzlibrary{babel}in the preamble. That is, you probably load thebabelpackage, and sincetikz-cdis loading and using thequoteslibrary, you also need thebabelTikZ library. – Jun 08 '20 at 20:09\usepackage[utf8]{inputenc}instead of\usetikzlibrary{babel}. – Sebastiano Jun 08 '20 at 20:10\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.) – Jun 08 '20 at 20:18