Moves paper, assignment, and letter templates from pdflatex to lualatex, and replaces the Type-1 font setup (mathdesign/garamond, ucs/utf8x, T1 fontenc) with fontspec using EB Garamond for the main font and TeX Gyre Heros for sans. This produces PDFs whose text extracts cleanly and is a prerequisite for tagged/accessible PDF output. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
523 B
Makefile
31 lines
523 B
Makefile
#!/usr/bin/make
|
|
|
|
all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
|
|
|
|
# use the following section for Rnw/knitr documents
|
|
# all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
|
|
# %.tex: %.Rnw
|
|
# Rscript -e "library(knitr); knit('$<')"
|
|
|
|
%.pdf: %.tex
|
|
latexmk -f -lualatex $<
|
|
|
|
clean:
|
|
latexmk -C *.tex
|
|
rm -f *.tmp *.run.xml
|
|
rm -f vc
|
|
rm -f *.bbl
|
|
# the following lines are useful for Rnw/knitr
|
|
# rm -rf cache/ figure/
|
|
# rm -f *.tex
|
|
|
|
viewpdf: all
|
|
evince *.pdf
|
|
|
|
vc: resources/vc-git
|
|
|
|
pdf: all
|
|
|
|
.PHONY: clean all
|
|
# .PRECIOUS: %.tex
|