From Markdown to PDF: how to change the font-size with Pandoc?

pimpampoum picture pimpampoum · May 22, 2014 · Viewed 27.8k times · Source

I'm converting some Markdown files into PDF using Pandoc like this:

pandoc input.md -V geometry:margin=1in -o output.pdf 

By default, the font-size is quite small in the pdf. I'd like to make all the fonts bigger (title, sub title, text, etc.). How can I do that?

Answer

John MacFarlane picture John MacFarlane · May 22, 2014

Add this to your incantation:

-V fontsize=12pt