A docker image file for pandoc with beamer support
Write presentation slides in markdown and convert them to HTML or PDF with pandoc and beamer.
The pandoc toolchain including beamer is heavyweight and can be cumbersome to install on non GNU/Linux systems. This Docker image should make things simpler.
It is also suited for book editing, although it contains extra dependencies for slide presentations.
docker build -t yackx/pandoc .
Remark: this will take some time and generate a large image (around 3Gb).
A Makefile will read the sample.md source and convert it to different output formats.
Generate a sample.pdf
make slide-pdf
Generate a slide.html (several themes available)
make slide-html
Generate a manual.pdf
make book-pdf
Cleanup
make clean
If you don't have make installed or working, you can simply copy-paste the commands from Makefile.
Create a file /usr/local/bin/pandoc
docker run -v `pwd`:/data yackx/pandoc pandoc $@XeTeX is a TeX typesetting engine using Unicode and supporting modern font technologies. It is included in the docker image and the Makefile PDF generation command contains a switch --pdf-engine=xelatex to invoke it.
For simpler slide presentations, you might want to remove that extra dependency from the docker image and remove the switch in order to gain about 2Gb of image size.
- Creating Presentations Using Markdown and Pandoc
- Pandoc - Styling the slides
- blang/latex-docker
- jagregory/pandoc-docker
GNU General Public License v3.0. Read LICENSE.txt