18
0

Switch templates to LuaLaTeX with fontspec

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>
This commit is contained in:
2026-04-12 21:11:51 -07:00
parent 27e9bc3254
commit a0674e7f87
6 changed files with 12 additions and 20 deletions

View File

@@ -8,7 +8,7 @@ all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
# Rscript -e "library(knitr); knit('$<')" # Rscript -e "library(knitr); knit('$<')"
%.pdf: %.tex %.pdf: %.tex
latexmk -f -pdf $< latexmk -f -lualatex $<
clean: clean:
latexmk -C *.tex latexmk -C *.tex

View File

@@ -8,11 +8,9 @@
% with article-3 \chapterstyle, change to: \pagestyle{memo} % with article-3 \chapterstyle, change to: \pagestyle{memo}
\pagestyle{mako-mem} \pagestyle{mako-mem}
\usepackage[utf8]{inputenc} \usepackage{fontspec}
\setmainfont{EB Garamond}
\usepackage[T1]{fontenc} \setsansfont{TeX Gyre Heros}
\usepackage{textcomp}
\usepackage[garamond]{mathdesign}
\usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry} \usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}

View File

@@ -3,7 +3,7 @@
all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
%.pdf: %.tex %.pdf: %.tex
latexmk -f -pdf $< latexmk -f -lualatex $<
clean: clean:
latexmk -C *.tex latexmk -C *.tex

View File

@@ -1,13 +1,8 @@
\documentclass[12pt]{letter} \documentclass[12pt]{letter}
\usepackage{ucs} \usepackage{fontspec}
\usepackage[utf8x]{inputenc} \setmainfont{EB Garamond}
\setsansfont{TeX Gyre Heros}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\renewcommand{\rmdefault}{ugm}
\renewcommand{\sfdefault}{phv}
\usepackage[garamond]{mathdesign}
\usepackage[letterpaper,left=1.3in,right=1.3in,top=0.8in,bottom=0.8in]{geometry} \usepackage[letterpaper,left=1.3in,right=1.3in,top=0.8in,bottom=0.8in]{geometry}

View File

@@ -8,7 +8,7 @@ all: $(patsubst %.tex,%.pdf,$(wildcard *.tex))
# Rscript -e "library(knitr); knit('$<')" # Rscript -e "library(knitr); knit('$<')"
%.pdf: %.tex %.pdf: %.tex
latexmk -f -pdf $< latexmk -f -lualatex $<
clean: clean:
latexmk -C *.tex latexmk -C *.tex

View File

@@ -7,11 +7,10 @@
% \published tag % \published tag
\chapterstyle{cdsc-article} \chapterstyle{cdsc-article}
\usepackage[utf8]{inputenc} \usepackage{fontspec}
\setmainfont{EB Garamond}
\setsansfont{TeX Gyre Heros}
\usepackage{wrapfig} \usepackage{wrapfig}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[garamond]{mathdesign}
\usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry} \usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}