Skip to content

Instantly share code, notes, and snippets.

@tbnorth
Last active October 1, 2018 18:48
Show Gist options
  • Save tbnorth/0883af18e6df30045a1c0d35ef5cdce4 to your computer and use it in GitHub Desktop.
Save tbnorth/0883af18e6df30045a1c0d35ef5cdce4 to your computer and use it in GitHub Desktop.
notes on printing notes from GitHub markdown to pdf

One time,

echo -e '\usepackage{extsizes}\n\usepackage[margin=0.25in]{geometry}' >extsizes.inc

because -V geometry:margin=0.25in is ignored for some reason.

Then

pandoc https://raw.githubusercontent.com/tbnorth/deltest/554550cf/toolsdemo.md \
  --include-in-header extsizes.inc -V documentclass=extarticle \
  -V fontsize=20pt -V fontfamily=arev -o toolsdemo.pdf

pdfjam --nup 2 --landscape --letterpaper toolsdemo.pdf -o print.pdf

(use hash because CDNs aggressively cache GitHub data so default / master doesn't update, also pandoc can't pipe out PDF so use intermediate file)

Going through pandoc lets \newpage work.

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