Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change header ("Contents") of automatic TOC when using Pandoc?

When converting markdown to pdf with pandoc (version 1.12.1) the ToC option adds an english header: "Contents".

Since my document is in Dutch, I would like to be able to put the Dutch equivalent of contents there. But unfortunately I couldn't find any configuration options for this, neither did I found clues in the default.latex file.

My query:

pandoc -S --toc essay.md --biblio "MCM Essay.bib" --csl apa.csl -o mcm.pdf
  • I'm using windows
  • I use MIKTex, like in the pandoc instructions
like image 835
wouthoekstra Avatar asked Oct 20 '22 19:10

wouthoekstra


1 Answers

The string "Contents" is not supplied by pandoc, but by latex (which pandoc calls to create the PDF).

Try adding

-Vlang=dutch

to your command line. This will be passed to latex in the documentclass options, and LaTeX will provide the right string.

like image 61
John MacFarlane Avatar answered Nov 01 '22 07:11

John MacFarlane