Skip to content

Commit

Permalink
Merge pull request #1 from egor-demidov/force-compilation
Browse files Browse the repository at this point in the history
Update make_diff.sh
  • Loading branch information
egor-demidov authored Jun 20, 2024
2 parents 095dd85 + 6de22ff commit b513e1e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions make_diff.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#!/bin/bash

set -e
#set -e

cp /.latexmkrc ~/.latexmkrc

# Compile the current document
latexmk -pdf -interaction=nonstopmode -shell-escape $1
latexmk -pdf -f -interaction=nonstopmode -shell-escape $1

# Compile the base version of the document
unzip base.zip
cd base
latexmk -pdf -interaction=nonstopmode -shell-escape $1
latexmk -pdf -f -interaction=nonstopmode -shell-escape $1

# Generate and compile the diff
cd ..
latexdiff --flatten base/$1 $1 > diff.tex
latexmk -pdf -interaction=nonstopmode -shell-escape diff.tex
latexmk -pdf -f -interaction=nonstopmode -shell-escape diff.tex

rm -rf base
rm *.bbl || true
Expand Down

0 comments on commit b513e1e

Please sign in to comment.