Created
August 5, 2017 00:17
-
-
Save cleverca22/e411a205908cfd14a012d931f1dbdaf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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