I am getting errors like, missing $ inserted or extra or forgotten } while trying to compile the following code using beamer class.
\documentclass{beamer}
\newcommand*{\theorembreak}{\usebeamertemplate{theorem end}\framebreak\usebeamertemplate{theorem begin}}
\usepackage{mathtools}
\allowdisplaybreaks
\usepackage{tikz-cd}
\usetheme{Warsaw}``
\begin{frame}
\begin{equation}
\begin{tikzcd}[font=\small]
0 \ar{r} & \frac{E'(K)}{\phi(E(K))} \ar{r}{\delta} \ar{d}
& H^{1}(G_K, E[\phi]) \ar{r} \ar{d}{Res_v} & WC(E/K)[\phi] \ar{r} \ar{d} & 0 \\
0 \ar{r} & \frac{E'(K_v)}{\phi(E(K_v))} \ar{r}{\delta_{v}} \ar{d}
& H^{1}(G_{v}, E[\phi]) \ar{r} \ar{d} & WC(E/K_{v})[\phi] \ar{r} \ar{d} & 0 \\
0 \ar{r} & \prod\limits_{\mathclap{v \in M_K}} \frac{E'(K_v)}{\phi(E(K_v))}
\ar{r}{\prod\limits_{\mathclap{v \in M_K}}\delta_{v}}
&
\prod\limits_{\mathclap{v \in M_K}} H^{1}(G_{v}, E[\phi]) \ar{r} &
\prod\limits_{\mathclap{v \in M_K}} WC(E/K_{v})[\phi] \ar{r} & 0
\end{tikzcd}
\end{equation}
\end{frame}
\end{document}
Specifically, I get the following message:
! Undefined control sequence.
<argument> \pgf@matrix@last@nextcell@options
l.23 \end{frame}
If I type r and hit return, LaTeX reports lots of errors, spits out "That makes 100 errors; please try again." and crashes.
I have used the same code in another LaTeX document where it worked fine. But so I think the error could be some missing package. I don't know..
Can someone help me figure this out?
Thank you.
