Switch to LuaLaTeX (better tagged PDF support), add \DocumentMetadata for PDF 2.0 and language metadata, enable tagpdf tagging, and mark tikz overlay commands (\credit, \marktopleft, \markbottomright) as PDF artifacts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
#!/usr/bin/make
|
|
|
|
all: notes.config vc $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
|
pdf: all
|
|
|
|
%.pdf: %.tex
|
|
latexmk -f -lualatex $<
|
|
# latexmk -f -pdf -pdflatex="xelatex -synctex=1 %S %O" -verbose -file-line-error -interaction=nonstopmode $<
|
|
# qpdf --qdf --object-streams=disable $@ - | sponge $@
|
|
# sed -e 's|/PageLabels|/BageLapels|g' < $@ |sponge $@
|
|
# qpdf $@ - | sponge $@
|
|
|
|
# by default, we produce combined notes/slides output
|
|
notes.config:
|
|
echo '\setbeameroption{show notes on second screen}' > notes.config
|
|
|
|
# rules for generating notesonly
|
|
notesonly-config:
|
|
echo '\setbeameroption{show only notes}' > notes.config
|
|
notesonly: notesonly-config pdf
|
|
|
|
# rules for generating slides only
|
|
slides-config:
|
|
echo '' > notes.config
|
|
slides: slides-config pdf
|
|
|
|
viewpdf: all
|
|
evince *.pdf
|
|
|
|
spell:
|
|
aspell -c -t --tex-check-comments -b text.tex
|
|
|
|
vc:
|
|
resources/vc-git
|
|
|
|
clean:
|
|
latexmk -C *.tex
|
|
rm -f *.tmp
|
|
rm -f vc
|
|
rm -f notes.config
|
|
rm -f *.pdfpc
|
|
|
|
pdfpc:
|
|
pdfpc -n right *.pdf
|
|
|
|
.PHONY: clean all notesonly-config notesonly slides-config slides viewpdf pdfpc spell
|