DEV Community


Discussion on: Exporting a markdown book to PDF with Pandoc

learnbyexample profile image
Sundeep • Edited

pandoc is quite good and has plenty of options to convert markdown to pdf (and other formats) It has its own version of markdown with plenty of extensions and supports Github style markdown as well

I personally use Github one as it would make it easier to open source my books later on. I wrote a post with my current setup:

There's also a template I saw on Github, yet to try though:

GitHub logo Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.


Build Status

A clean pandoc LaTeX template to convert your markdown files to PDF or LaTeX. It is designed for lecture notes and exercises with a focus on computer science. The template is compatible with pandoc 2.


A custom title page A basic example page
A custom title page A basic example page


  1. Install pandoc from You also need to install LaTeX.

  2. Download the latest version of the Eisvogel template from the release page.

  3. Extract the downloaded ZIP archive and open the folder.

  4. Move the template eisvogel.tex to your pandoc templates folder and rename the file to eisvogel.latex. The location of the templates folder depends on your operating system:

    • Unix, Linux, macOS: $XDG_DATA_HOME/pandoc/templates or ~/.pandoc/templates/
    • Windows XP: C:\Documents And Settings\USERNAME\Application Data\pandoc\templates
    • Windows Vista or later: C:\Users\USERNAME\AppData\Roaming\pandoc\templates

    If there are no folders called templates or pandoc you need to create them and put the template eisvogel.latex inside.


  1. Open the terminal and navigate…

thefern profile image
Fernando B 🚀 Author

Thanks for the link to your post, information looks great! I think I am also going to stick with github style.