Skip to content

Commit 81642f3

Browse files
author
Clément
committed
Improving check recipe.
1 parent 608f8ec commit 81642f3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

md_version/main.pdf

-12 Bytes
Binary file not shown.

md_version/makefile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ tex: main.md
4343
@echo "Your .tex version is available at ../tex_version/. Compile with latexmk -pdf -xelatex main.tex"
4444

4545
# This recipe checks that the md and tex version produce identical pdfs.
46-
check: | tex main.pdf
47-
@cd ../tex_version/
48-
@latexmk -pdf -silent -xelatex main.tex
49-
@cmp --silent main.pdf ../md_version/main.pdf && echo '### SUCCESS: Files Are Identical! ###' || echo '### WARNING: Files Are Different! ###'
46+
# Requires to place compare-pdfs.sh in root folder,
47+
# script available at https://github.com/iSimsi/compare-pdfs
48+
check: tex main.pdf
49+
latexmk -cd -pdf -silent -xelatex ../tex_version/main.tex
50+
cd ../ && ./compare-pdfs.sh md_version/main.pdf tex_version/main.pdf
51+

0 commit comments

Comments
 (0)