Skip to content

Instantly share code, notes, and snippets.

@berezovskyi
Last active December 18, 2015 14:19
Show Gist options
  • Save berezovskyi/5796536 to your computer and use it in GitHub Desktop.
Save berezovskyi/5796536 to your computer and use it in GitHub Desktop.
Pandoc pdf export script for Windows
@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"
@berezovskyi
Copy link
Author

Usage:

pdf post.md or

pdf post.MARKDOWN

Output:

post.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment