Sign inSign up

daamien/pandocker

By daamien

•Updated almost 8 years ago

A simple docker for pandoc with latex and wkhtmltopdf

Image
1

1.1K

daamien/pandocker repository overview

⁠pandocker

github
release Docker Image CI License Last Commit

A simple docker image for pandoc with filters, templates, fonts and the latex bazaar.

⁠How To

Run dalibo/pandocker with regular pandoc args. Mount your files at /pandoc.

$ docker run --rm -u `id -u`:`id -g` -v `pwd`:/pandoc dalibo/pandocker README.md

Tip: use a shell alias to use pandocker just like pandoc. Add this to your ~/.bashrc :

$ alias pandoc="docker run --rm -u `id -u`:`id -g` -v `pwd`:/pandoc dalibo/pandocker"
$ pandoc document.md

Note: if SELinux is enabled on you system, you might need to add the --privileged tag to force access to the mouting points. See https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities⁠ .

⁠Supported Tags

You can use 2 different versions of this machine with the following tags:

  • latest : this is the default (based on master branch)
  • stable or 17.12 : for production

Other tags are not supported and should be used with care.

⁠Build it

Use make or docker build

⁠Embedded template : Eisvogel

We're shipping a latex template inside the image so that you can produce a nice PDF without installing anything. The template is called eisvogel⁠ and you can use it simply by adding --template=eisvogel to your compilation lines:

$ docker run [...] --pdf-engine=xelatex --template=eisvogel foo.md -o foo.pdf

Tag summary

Content type

Image

Digest

Size

266 MB

Last updated

almost 8 years ago

docker pull daamien/pandocker