Reputation: 731
He,
How can I add a code listing to a beamer note slide?
I tried the following which doesn't work:
\note{{\tiny{This is a note
\begin{lstlisting}
foo bar
\end{lstlisting}}}
Any suggestions?
Upvotes: 0
Views: 1157
Reputation: 7727
Verbatim-like commands and environments, which includes lstlisting, cannot appear as arguments to other commands (without losing their magic verbatimness regarding \, $, etc.)
Upvotes: 1