beamer icon indicating copy to clipboard operation
beamer copied to clipboard

feature request: support source code in notes

Open holtzermann17 opened this issue 6 years ago • 3 comments

As documented here, https://tex.stackexchange.com/questions/7083/latex-beamer-code-listings-in-notes notes cannot handle source code. A workaround is described there for lstlisting and should also work for verbatim, but in my experience it does not work for minted.

Here's a basic MWE (not using the workaround).

\documentclass{beamer}
\setbeameroption{show notes}

\begin{document}

\begin{frame}[fragile]
\begin{verbatim}
Qux
\end{verbatim}\note{hello}
\end{frame}

\begin{frame}[fragile]
second frame
\note{\begin{verbatim}
foo bar
\end{verbatim}}
\end{frame}

\end{document}

holtzermann17 avatar Sep 13 '18 15:09 holtzermann17

https://tex.stackexchange.com/a/450862/4357 contains a work around that works for minted as well! It might be nice to have some way of achieving the effect that "just works" out of the box without all the patchwork.

holtzermann17 avatar Sep 14 '18 13:09 holtzermann17

This is the classic verbatim-in-arguments issue. Other than making notes an environment, there is no real general fix.

josephwright avatar Sep 18 '18 12:09 josephwright

related feature request by @eg9 for minted: https://github.com/gpoore/minted/issues/215

ghost avatar Sep 18 '18 13:09 ghost