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?
|
Welcome! One problem with the snippet you provide is an unmatched brace. But even so, like Inspired by this post to the beamer mailing list, I found a workaround with the
|
|||||
|
|
I highly recommend the "minted" package for all code listings. Note that if you use this on a beamer slide, it must be fragile:
Note: The minted package needs Pygments for syntax highlighting. |
|||||||||||
|
|
Using
|
|||
|
|
\note. Could you please add a minimal example for your problem which compiles? – Matten Dec 14 '10 at 8:03