Notes that use a deck's own macros failed to typeset, since mknotes
only pulled in fonts.tex. A deck now defines them in notes-preamble.tex
(starting with \input{fonts.tex}), which mknotes prefers when present.
The Makefile keeps the new fragment out of the document list.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
40 lines
900 B
Makefile
40 lines
900 B
Makefile
#!/usr/bin/make
|
|
|
|
# fonts.tex and notes-preamble.tex are fragments meant to be \input, not
|
|
# documents of their own, so they stay out of the list or make would try to
|
|
# typeset them.
|
|
TEX := $(filter-out fonts.tex notes-preamble.tex,$(wildcard *.tex))
|
|
PDF := $(patsubst %.tex,%.pdf,$(TEX))
|
|
JOB := $(patsubst %.tex,%,$(TEX))
|
|
|
|
all: slides
|
|
slides: vc $(PDF)
|
|
|
|
%.pdf: %.tex
|
|
latexmk -f -lualatex $<
|
|
|
|
# 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
|
|
./mknotes $(JOB)
|
|
|
|
vc:
|
|
resources/vc-git
|
|
|
|
viewpdf: slides
|
|
evince $(PDF)
|
|
|
|
pdfpc: notes
|
|
pdfpc -n right $(JOB)-notes.pdf
|
|
|
|
spell:
|
|
aspell -c -t --tex-check-comments -b $(TEX)
|
|
|
|
clean:
|
|
latexmk -C $(TEX)
|
|
rm -f *.notes *.tmp *.nav *.snm *.pdfpc *-luamml-mathml.html
|
|
rm -f vc
|
|
rm -f $(JOB)-notes.pdf
|
|
|
|
.PHONY: all slides notes vc viewpdf pdfpc spell clean
|