Clean up temporary files after annotation

main
Elnu 1 year ago
parent 96bd340006
commit c9453e8a68

@ -23,6 +23,7 @@
postPatch = '' postPatch = ''
substituteInPlace run.sh \ substituteInPlace run.sh \
--replace pdflatex ${texlive}/bin/pdflatex \ --replace pdflatex ${texlive}/bin/pdflatex \
--replace latexmk ${texlive}/bin/latexmk \
--replace ${tex} $out/share/${tex} --replace ${tex} $out/share/${tex}
''; '';
installPhase = '' installPhase = ''

@ -1,2 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
pdflatex "\newcommand{\vartitle}{${1}}\newcommand{\varinput}{${2}}\input{numbered.tex}" && mv numbered.pdf ${3} &> /dev/null pdflatex "\newcommand{\vartitle}{${1}}\newcommand{\varinput}{${2}}\input{numbered.tex}" && mv numbered.pdf ${3} &> /dev/null
latexmk -c &> /dev/null
Loading…
Cancel
Save