Skip to content

yackx/pandoc-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

51 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

pandoc-docker

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.

Install

docker build -t yackx/pandoc .

Remark: this will take some time and generate a large image (around 3Gb).

Run

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.

Shortcut

Create a file /usr/local/bin/pandoc

docker run -v `pwd`:/data yackx/pandoc pandoc $@

XeTeX

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.

See also

Credits

License

GNU General Public License v3.0. Read LICENSE.txt

About

Dockerfile for pandoc with beamer support. Write presentation slides or book in markup and convert to HTML or PDF πŸ³πŸ“—

Topics

Resources

License

Stars

Watchers

Forks

Contributors