nemron
nemron

Reputation: 731

LaTeX beamer: Code listings in notes

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

Answers (1)

Ulrich Schwarz
Ulrich Schwarz

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

Related Questions