Skip to content

Commit 50830d3

Browse files
author
Clément
committed
Added makefile recipe to check that md and tex version are identical.
1 parent 4fc02cc commit 50830d3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

md_version/main.pdf

-1 Bytes
Binary file not shown.

md_version/makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ tex: main.md
4040
@cp -r main.tex fonts/ references/ pictures/ pdf/ code/ ../tex_version/
4141
@echo "Your .tex version is available at ../tex_version/. Compile with latexmk -pdf -xelatex main.tex"
4242

43+
# This recipe checks that the md and tex version produce identical pdfs.
44+
check: | tex main.pdf
45+
@cd ../tex_version/
46+
@latexmk -pdf -silent -xelatex main.tex
47+
@cmp --silent main.pdf ../md_version/main.pdf && echo '### SUCCESS: Files Are Identical! ###' || echo '### WARNING: Files Are Different! ###'

0 commit comments

Comments
 (0)