Last active
December 18, 2015 14:19
-
-
Save berezovskyi/5796536 to your computer and use it in GitHub Desktop.
Pandoc pdf export script for Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
rem © 2013 Andrew Berezovskiy | |
rem Pandoc pdf export script | |
rem Requires PT Serif font family. See http://www.paratype.com/public/ | |
pandoc %1 -o %~n1.pdf^ | |
--latex-engine=xelatex^ | |
-V mainfont="PT Serif"^ | |
-V geometry="top=1.5cm, bottom=1.5cm, right=1.5cm, left=2.5cm, footskip=0.7cm"^ | |
-V fontsize="12pt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
pdf post.md
orpdf post.MARKDOWN
Output:
post.pdf