I know we need to use fragile
when using \verb
in beamer as explained here.
But even with fragile
, I get the following error when using \verb
in a footnote.
! Missing $ inserted.
<inserted text>
$
l.2 \end{frame}
?
How can I fix this?
A minimal example is
\documentclass{beamer}
\begin{document}
\begin{frame}[fragile]{Title}
Text\footnote{\verb|\int|}
\end{frame}
\end{document}
\footnote{\texttt{\textbackslash int}}
instead