Skip to content

Instantly share code, notes, and snippets.

@matematikaadit
Created July 5, 2014 18:18
Show Gist options
  • Save matematikaadit/4ee059690518a222f7bb to your computer and use it in GitHub Desktop.
Save matematikaadit/4ee059690518a222f7bb to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
rm -rf "CIS 194"
mkdir "CIS 194"
for file in *.lhs; do
pandoc -V geometry:margin=1in -f markdown+lhs -t latex -o "CIS 194/${file%.lhs}.pdf" --latex-engine=xelatex "$file"
done
pdfdir-join "CIS 194"
@oblitum
Copy link

oblitum commented Jul 5, 2014

hi, fyi, I've fixed the original script to avoid pdf merging with pdfdir-join. It's just a single command.

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