I'm writing a beamer presentation on basic math type-setting in latex and I've been trying to use verbatim to display how math equations are typed. Using fragile this works, but I still get several annoying error messages every time I compile, so I'm never sure if I have an actual error or if beamer is just complaining about verbatim. The current offender would be:
\begin{verbatim}
\[
X := \bigcup_{n \in \Mb N}\coprod_{\lambda \in \Lambda}
(X_\lambda \cap Y_\lambda ) \vee \Mb S^{n}.
\]
\end{verbatim}
I get error messages along the lines of:
LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
(Font) size <5> substituted on input line 11.
[1{/home/schlatjj/.texmf-var/fonts/map/pdftex/updmap/pdftex.map}] (./Math.toc)
[2] (./Math.vrb
LaTeX Font Warning: Font shape `OMS/cmss/m/n' undefined
(Font) using `OMS/cmsy/m/n' instead
(Font) for symbol `textbraceleft' on input line 6.
) [3] (./Math.vrb) [4] (./Math.vrb
! Undefined control sequence.
\test@single@character ...ken ->\def \math@format
##1{\mydollar ##1\mydollar...
l.10 \end{verbatim}
Are there any workarounds for this, something I can change in the code to make these error messages go away?
\protectat some appropriate places; for this you'd better post a minimal working example. – Hendrik Vogt Dec 13 '10 at 18:55! Missing $ inserted.occur when using \verb in beamer? – Martin Thoma Aug 20 '14 at 17:15