From c9453e8a684decd4596d6e1900c8a9a70e0168e6 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 18 Aug 2023 13:27:21 -0700 Subject: [PATCH] Clean up temporary files after annotation --- flake.nix | 1 + run.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 17e5699..3bfee6c 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,7 @@ postPatch = '' substituteInPlace run.sh \ --replace pdflatex ${texlive}/bin/pdflatex \ + --replace latexmk ${texlive}/bin/latexmk \ --replace ${tex} $out/share/${tex} ''; installPhase = '' diff --git a/run.sh b/run.sh index 904a547..9737364 100755 --- a/run.sh +++ b/run.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash -pdflatex "\newcommand{\vartitle}{${1}}\newcommand{\varinput}{${2}}\input{numbered.tex}" && mv numbered.pdf ${3} &> /dev/null \ No newline at end of file +pdflatex "\newcommand{\vartitle}{${1}}\newcommand{\varinput}{${2}}\input{numbered.tex}" && mv numbered.pdf ${3} &> /dev/null +latexmk -c &> /dev/null \ No newline at end of file