Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created August 5, 2017 00:17
Show Gist options
  • Save cleverca22/e411a205908cfd14a012d931f1dbdaf7 to your computer and use it in GitHub Desktop.
Save cleverca22/e411a205908cfd14a012d931f1dbdaf7 to your computer and use it in GitHub Desktop.
latex2pdf = name: input: runCommand name { buildInputs = [ (texlive.combine { inherit (pkgs.texlive) scheme-full lm tipa; }) pandoc ]; } ''
mkdir $out
echo ${input}
pandoc +RTS -M15G -K2G -RTS --template=${./template.tex} -t latex -o $out/${name}.pdf < ${input}
'';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment