Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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