Specifying papersize for md to pdf conversion

geotheory picture geotheory · Jul 19, 2016 · Viewed 8k times · Source

I've read you can specify papersize by pandoc -V papersize:"a4paper" .... This doesn't seem to work anymore. I've managed to specify B5 using

pandoc -V papersize:b5 -o out.pdf in.md

But this fails for e.g. b6. The following -V arguments also all appear to have no effect:

-V papersize:b5paper
-V papersize:"b5paper"
-V "papersize:b5paper"

What is the proper way to format this, or am I missing something more fundamental? In my opinion the documentation is far from clear, lacking e.g. any examples.

Answer

mb21 picture mb21 · Jul 20, 2016
pandoc -s -V papersize:a4

Pandoc's LaTeX template will append paper to a4...