20
0

Let decks define note macros in notes-preamble.tex

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>
This commit is contained in:
2026-08-20 00:11:19 +09:00
parent ab50e8e025
commit b7e37320de
3 changed files with 16 additions and 9 deletions

View File

@@ -1,8 +1,9 @@
#!/usr/bin/make
# fonts.tex is a fragment meant to be \input, not a document of its own, so it
# has to stay out of the list or make will try to typeset it.
TEX := $(filter-out fonts.tex,$(wildcard *.tex))
# 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))