Clean up temporary files after annotation

This commit is contained in:
Elnu 2023-08-18 13:27:21 -07:00
parent 96bd340006
commit c9453e8a68
2 changed files with 3 additions and 1 deletions

View file

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

3
run.sh
View file

@ -1,2 +1,3 @@
#!/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