diff options
-rw-r--r-- | Makefile | 25 | ||||
-rw-r--r-- | _quarto.yml | 1 |
2 files changed, 26 insertions, 0 deletions
@@ -87,3 +87,28 @@ $(ARTICLES:%=turtle-from-%): turtle-from-%: _site/%/index.pdf $(ARTICLES:%=dotgraph-from-%): dotgraph-from-%: _site/%/index.pdf @bin/xmp2rdfxml _site/$*/index.pdf \ | rapper -i rdfxml -o dot - $(BASE_IRI)$*/ + +diff-all: $(ARTICLES:%=diff-of-%) + +$(ARTICLES:%=diff-of-%): diff-of-%: %/changes.tex + +$(ARTICLES:%=%/changes.tex): %/changes.tex: %/a.tex %/b.tex + latexdiff --type CULINECHBAR --subtype COLOR --replace-context2cmd '' $^ > $*/index_diff.tex + perl -i -pe 's/\[pdftex\]{changebar}/[luatex]{changebar}/g' $*/index_diff.tex + latexmk --gg --lualatex --cd --silent --Werror $*/index_diff.tex + find $*/ -name 'index_diff.*' -not -name index_diff.pdf -delete + rm -f $^ + +$(ARTICLES:%=%/a.tex): %/a.tex: + git switch --detach $(shell git describe --tags --abbrev=0) + QUARTO_LOG_LEVEL=quiet \ + quarto render $*/index.qmd --to pdf -M keep-tex:true --output a.pdf + mv --force $*/index.tex $@ + rm --force _site/a.pdf + +$(ARTICLES:%=%/b.tex): %/b.tex: + git switch - + QUARTO_LOG_LEVEL=quiet \ + quarto render $*/index.qmd --to pdf -M keep-tex:true --output b.pdf + mv --force $*/index.tex $@ + rm --force _site/b.pdf diff --git a/_quarto.yml b/_quarto.yml index b8740f5..1afba7d 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -65,6 +65,7 @@ filters: - diagram resources: + - "*/changes.pdf" - "events/*/*.ics" - "events/*/index.html" - fonts |