From c64ceb86cb2eb5b5cce0690e3f16c3438e717a8e Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Tue, 16 Jan 2024 19:47:13 +0100 Subject: [PATCH] Fix building diffed PDF --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index d684c7d..d96c983 100644 --- a/flake.nix +++ b/flake.nix @@ -45,7 +45,7 @@ mv book.tex ../sent.tex popd mkdir build - ${full-texlive}/bin/latexdiff --math-markup=whole -t CFONT sent.tex book.tex > diff.tex + ${full-texlive}/bin/latexdiff --math-markup=whole -t CFONT -c 'VERBATIMENV=(?:(?:comment)|(?:minted)|(?:luacode[*]?))' sent.tex book.tex | sed "s/%DIF > $//" > diff.tex ${full-texlive}/bin/latexmk -f -pdf -lualatex -shell-escape -interaction=nonstopmode -output-directory=build book.tex ${full-texlive}/bin/latexmk -f -pdf -lualatex -shell-escape -interaction=nonstopmode -output-directory=build diff.tex mv build/book.pdf build/diff.pdf .