这里的答案帮助我真正编译了 PDF,但产品还不是我目前需要的Beamer Tikz-cd 问题
我正在尝试制作这个图表,它在我的论文中编译得很好,但在 beamer 中却不行
论文中有代码
\[
\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}
\]
在投影机中,我遵循了上述 Stack 答案中的一些建议,但到目前为止,我只有
\[
\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}
\]
以及以下错误
答案1
根据非常好的用户薛定谔的猫的建议......
\documentclass[a4paper,12pt]{beamer}
\usepackage[czech]{babel}
\usepackage{tikz-cd}
\usetikzlibrary{babel}
\begin{document}
\begin{tikzcd}[ampersand replacement=\&,sep=huge]
\text{\large 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}
\end{document}