Skip to content

Instantly share code, notes, and snippets.

@cleverca22
Created January 13, 2019 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/8d4bc3598fba54606609338cce9788f4 to your computer and use it in GitHub Desktop.
Save cleverca22/8d4bc3598fba54606609338cce9788f4 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