\documentclass[landscape,final,a0paper]{baposter}
\usepackage{tikz-cd}
\begin{document}
\begin{poster}{}{}{}{}{}
\headerbox{Lorem ipsum}{name=lipsum,column=0,row=0}{
\[\begin{tikzcd}
A \arrow[r] \arrow[d] & B \arrow[d,"id"] \\
C \arrow[r] & B
\end{tikzcd}\]
}
\end{poster}
\end{document}
错误:
! Undefined control sequence.
<argument> \pgf@matrix@last@nextcell@options
我尝试使用 & 符号替换,但没有效果。
答案1
欢迎来到 TeX.SE!您需要ampersand replacement
在此处发布。
\documentclass[landscape,final,a0paper]{baposter}
\usepackage{tikz-cd}
\begin{document}
\begin{poster}{}{}{}{}{}
\headerbox{Lorem ipsum}{name=lipsum,column=0,row=0}{
\[\begin{tikzcd}[ampersand replacement=\&]
A \arrow[r] \arrow[d] \& B \arrow[d,"id"] \\
C \arrow[r] \& B
\end{tikzcd}\]
}
\end{poster}
\end{document}