Fix building diffed PDF

This commit is contained in:
Charlotte Van Petegem 2024-01-16 19:47:13 +01:00
parent 37475b58ee
commit c64ceb86cb
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -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 .