[Tex/LaTex] Changing “language” settings used by Pandoc for generated output [Pandoc template variables]

chaptersmarkdownpandoc

This is not directly a LaTeX question since I use Markdown to format my text but this subpart of "stack" seems the most correct place to ask my question.

I generate my PDF with Pandoc from markdown using the command:

pandoc myDoc.md --chapters -o result.pdf

Where it generates chapters from my markdown. This is nice, however it calls the chapters "Chapter 1", "Chapter 2" and so on and so forth (See http://cl.ly/PfRJ ). For English documents this would be okay. However my documents are in Dutch.

Is there any way I can change this? I think there is a template somewhere where it stores these things? But I can't seem to find it.

Best Answer

You can pass the lang option to the template using -V which passes it further to the babel package.

pandoc -V lang=nl somefile.markdown

This is translated to the following LaTeX code which should result in dutch chapter headings.

\usepackage[dutch]{babel}
Related Question