Pandoc provides a very nice way to create slides with various formats from a basic Markdown source file. It is possible to have html slides and beamer slides (pdf output and/or LaTeX source code) from the same source code.
The freely available tool required: Pandoc
Here is the Markdown source file of the example I have just typed.
input.md
file:
Slides with Markdown
========================================================
# Contents
- Typing mathematics
- Including a web application
# Typing mathematics
Type mathematics as in `math.stackexchange.com` : $\int_0^1 f(x) \mathrm{d}x$
# Including a web application
Type the `html` source code you want:
<iframe src="http://glimmer.rstudio.com/stla/3Dsliced/" style="border: none; width: 500px; height: 700px"></iframe>
And here is a link to the html output file: output.html.
The html output file is obtained with Pandoc by typing the command line
pandoc -s -S -i -t slidy --mathjax input.md -o output.html
where ìnput.md
is the name of the Markdown source file.
To get a beamer output type:
pandoc -s -S -i -t beamer input.md -o output.pdf
And here is the link to the pdf output file: output.pdf
To get the source LaTeX file producing the beamer pdf :
pandoc -s -S -i -t beamer input.md -o output.tex
More details about this procedure are availbale in the Pandoc documentation and from here.