Fix the build targets after the port
veraPDF was wired in as a make dependency, which it should not be: it is a
check to run by hand, not something a build needs installed. The validate
target goes away.
The vc target came back. It generates the git revision file and was lost in
the port, so \input{vc} had nothing to read. spell came back with it.
notes.config is deliberately not restored. It existed to flip
\setbeameroption between slides, notes-on-second-screen and notes-only, and
ltx-talk has no such option: the slides build never contains notes and the
notes PDF is assembled afterwards by mknotes.
fonts.tex has to be kept out of the wildcard. It is a fragment with no
\documentclass, and make otherwise tries to typeset it and hangs waiting
for input.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1
slides_template/.gitignore
vendored
1
slides_template/.gitignore
vendored
@@ -24,3 +24,4 @@
|
|||||||
*.pdf
|
*.pdf
|
||||||
*.png
|
*.png
|
||||||
*-luamml-mathml.html
|
*-luamml-mathml.html
|
||||||
|
*.swp
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
#!/usr/bin/make
|
#!/usr/bin/make
|
||||||
|
|
||||||
# Slides are the deliverable: this is the build that gets uploaded and the one
|
# fonts.tex is a fragment meant to be \input, not a document of its own, so it
|
||||||
# that has to validate. The notes build is assembled from it afterwards and is
|
# has to stay out of the list or make will try to typeset it.
|
||||||
# only ever looked at while presenting.
|
TEX := $(filter-out fonts.tex,$(wildcard *.tex))
|
||||||
|
|
||||||
# veraPDF's installer leaves a directory called verapdf on PATH which shadows
|
|
||||||
# the launcher inside it, so the full path is used. Override if yours differs.
|
|
||||||
VERAPDF ?= $(HOME)/bin/verapdf/verapdf
|
|
||||||
|
|
||||||
TEX := $(wildcard *.tex)
|
|
||||||
PDF := $(patsubst %.tex,%.pdf,$(TEX))
|
PDF := $(patsubst %.tex,%.pdf,$(TEX))
|
||||||
JOB := $(patsubst %.tex,%,$(TEX))
|
JOB := $(patsubst %.tex,%,$(TEX))
|
||||||
|
|
||||||
all: slides
|
all: slides
|
||||||
slides: $(PDF)
|
slides: vc $(PDF)
|
||||||
|
|
||||||
%.pdf: %.tex
|
%.pdf: %.tex
|
||||||
latexmk -f -lualatex $<
|
latexmk -f -lualatex $<
|
||||||
|
|
||||||
# Double-width pages, slide left and notes right, for dspdfviewer and pdfpc.
|
# Double-width pages, slide left and notes right, for dspdfviewer and pdfpc.
|
||||||
|
# The notes pages are typeset with the same fonts as the slides.
|
||||||
notes: slides
|
notes: slides
|
||||||
./mknotes $(JOB)
|
./mknotes $(JOB)
|
||||||
|
|
||||||
# PDF/UA-2 conformance of the slides. Only the slides build is expected to
|
vc:
|
||||||
# pass; the assembled notes PDF is untagged by design.
|
resources/vc-git
|
||||||
validate: slides
|
|
||||||
$(VERAPDF) -f ua2 --format text $(PDF)
|
|
||||||
|
|
||||||
viewpdf: slides
|
viewpdf: slides
|
||||||
evince $(PDF)
|
evince $(PDF)
|
||||||
@@ -33,9 +26,13 @@ viewpdf: slides
|
|||||||
pdfpc: notes
|
pdfpc: notes
|
||||||
pdfpc -n right $(JOB)-notes.pdf
|
pdfpc -n right $(JOB)-notes.pdf
|
||||||
|
|
||||||
|
spell:
|
||||||
|
aspell -c -t --tex-check-comments -b $(TEX)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
latexmk -C $(TEX)
|
latexmk -C $(TEX)
|
||||||
rm -f *.notes *.tmp *.nav *.snm *.pdfpc *-luamml-mathml.html
|
rm -f *.notes *.tmp *.nav *.snm *.pdfpc *-luamml-mathml.html
|
||||||
|
rm -f vc
|
||||||
rm -f $(JOB)-notes.pdf
|
rm -f $(JOB)-notes.pdf
|
||||||
|
|
||||||
.PHONY: all slides notes validate viewpdf pdfpc clean
|
.PHONY: all slides notes vc viewpdf pdfpc spell clean
|
||||||
|
|||||||
Reference in New Issue
Block a user