I'm using \documentclass[11pt]{beamer} with the package Tikzcd but it doesn't work properly with the frames. It gives me the error:

Package pgf Error: Single ampersand used with wrong catcode. \end{frame}


As noted in section 3.4 of the tikz-cd manual, you can use the ampersand replacement key to solve this:



  \begin{tikzcd}[ampersand replacement=\&]
    A \ar[r]\& B 


Not the answer you're looking for? Browse other questions tagged or ask your own question.