TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a markdown user, and am just getting my feet wet in latex for PDF creation. I'm using Pandoc and MikTex on Windows 7. The following command gives me a nice PDF document:

markdown2pdf myfile.text

How do I change the styles of the PDF? (Page margin, font size, etc). I've tried using the "-V" option to add styling information...

markdown2pdf -V fontsize=18pt myfile.text

...But it doesn't make any difference in the resulting PDF file. What am I doing wrong?

share|improve this question
I suspect that the options available here are those that the article class knows, which is pretty limited. Have you tried using pandoc and pdflatex separately, and editing the intermediate .tex? – Joseph Wright Mar 23 '11 at 19:55
No I have not - but I'll give it a shot. Ideally though, I'd like the process to be automated, and not have to edit an intermediate .tex file each time I want a PDF. – user4402 Mar 23 '11 at 20:36

There exists a templating system that comes with pandoc, as described in the User Guide, but see the Templates section.

Kieran Healy has some nice templates that you could try first, before building your own.

And here is another example with code on github for The little MongoDB book.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.