I would like to write beamer slides in Pandoc markdown and generate matching lecture notes with longer, explanatory text. But I can't figure out the logic.
If I were to do this in LaTeX, then I would use the beamerarticle
package in the article
class version or the ignorenonframetext
option in the beamer
class version. With this setup I can add notes between frames and quickly generate slides for the screen and lecture notes for the desks. Here is an example. Toggling the comments on the first three lines should illustrate this.
% \documentclass{article}
% \usepackage{beamerarticle}
\documentclass[ignorenonframetext]{beamer}
\begin{document}
\begin{frame}{This is my first slide}
This is my first slides content.
\[ PV = FV / (1 + r)^t \]
\end{frame}
This is the longer text that I want to appear in the notes/handouts, but not in the beamer.
\begin{frame}{This is the second slide}
Short content.
\end{frame}
Longer content.
\end{document}
But this doesn't work with Pandoc slides because I can't write between the frames because the frames are only split by ---
.
I tried to write my own command gobble
and it works fine when I compile to pdf, but not when I compile to beamer. Here is an example. Toggling the comments on the newcommand
lines only provides the desired result for the article
class. The beamer
class won't compile.
% Chapter 1
% Richard
% May 15, 2015
\newcommand{\gobble}[1]{}
<!-- \newcommand{\gobble}[1]{#1} -->
---
# This is my first slide
This is my first slides content. Test.
$$ PV = FV / (1 + r)^t $$
\gobble{This is the longer text that I want to appear in the notes/handouts, but not in the beamer}
---
# This is the second slide
Short content.
Is there a way to approximate beamerarticle
and ignorenonframetext
in Pandoc markdown?