0

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?

nemron
  • 701
  • 6
  • 23

1 Answers1

1

Verbatim-like commands and environments, which includes lstlisting, cannot appear as arguments to other commands (without losing their magic verbatimness regarding \, $, etc.)

Ulrich Schwarz
  • 7,598
  • 1
  • 36
  • 48