18
0

Compare commits

..

5 Commits

Author SHA1 Message Date
a0674e7f87 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>
2026-04-12 21:11:51 -07:00
27e9bc3254 Drop Type-1 font defaults from cdsc-memoir.sty and mako-mem.sty
These set \rmdefault=ugm (URW Garamond) and \sfdefault=phv (Helvetica),
which only take effect under pdflatex. Under the lualatex workflow
adopted elsewhere, text fonts are selected via fontspec in the
template's main .tex file, and these defaults were dead code.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 21:11:28 -07:00
bd8fa11def poster_template: embed fonts in example figure PDFs
The bundled example figures referenced base-14 Helvetica without
embedding it, which blocks PDF/UA-2 compliance for any poster that
includes them. Regenerated via ~/bin/embed-fonts (ghostscript with
-dEmbedAllFonts=true).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 21:11:21 -07:00
f43488ef70 poster_template: comment out biblatex-dependent stanza
\DeclareLanguageMapping and \defbibheading come from biblatex, which the
template does not load. The template has failed to compile without local
edits for some time as a result.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 21:11:14 -07:00
34b6fe4401 Remove duplicate assignment_template/HW1.tex
HW1.tex was identical to text.tex except for a stale author name
(TeGrotenhuis vs. TeBlunthuis). new_tex_document only uses text.tex
and renames it on checkout.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 21:07:57 -07:00
25 changed files with 19 additions and 107 deletions

View File

@@ -1,67 +0,0 @@
\documentclass[12pt]{memoir}
% article-1 and article-2 styles were originally based on kieran healy's
% templates
\usepackage{mako-mem}
\chapterstyle{article-2}
% with article-3 \chapterstyle, change to: \pagestyle{memo}
\pagestyle{mako-mem}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[garamond]{mathdesign}
\usepackage[letterpaper,left=1.65in,right=1.65in,top=1.3in,bottom=1.2in]{geometry}
% packages i use in essentially every document
\usepackage{graphicx}
\usepackage{enumerate}
% packages i use in many documents but leave off by default
% \usepackage{amsmath, amsthm, amssymb}
% \usepackage{dcolumn}
% \usepackage{endfloat}
% import and customize urls
\usepackage[usenames,dvipsnames]{color}
\usepackage[breaklinks]{hyperref}
\hypersetup{colorlinks=true, linkcolor=Black, citecolor=Black, filecolor=Blue,
urlcolor=Blue, unicode=true}
% add bibliographic stuff
% memoir function to take out of the space out of the whitespace lists
\firmlists
% LATEX NOTE: these lines will import vc stuff after running `make vc` which
% will add version control information to the bottom of each page. This can be
% useful for keeping track of which version of a document somebody has:
% \input{vc}
% \pagestyle{mako-mem-git}
\begin{document}
\setlength{\parskip}{4.5pt}
% LATEX NOTE: Ideal linespacing is usually said to be between 120-140% the
% typeface size. So, for 12pt (default in this document, we're looking for
% somewhere between a 14.4-17.4pt \baselineskip. Single; 1.5 lines; and Double
% in MSWord are equivalent to ~117%, 175%, and 233%.
\baselineskip 16pt
\title{Title}
\author{Nathan TeGrotenhuis\\
\href{mailto:nathante@uw.edu}{nathante@uw.edu}}
\date{\today}
\maketitle
\section{Section}
\end{document}
% LocalWords:

View File

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

View File

@@ -21,9 +21,6 @@
% >> article-1 <<
\makechapterstyle{article-1}{
\renewcommand{\rmdefault}{ugm}
\renewcommand{\sfdefault}{phv}
\setsecheadstyle{\large\scshape}
\setsubsecheadstyle{\normalsize\itshape}
\renewcommand{\printchaptername}{}
@@ -60,9 +57,6 @@
% >> article-2 <<
\makechapterstyle{article-2}{
\renewcommand{\rmdefault}{ugm}
\renewcommand{\sfdefault}{phv}
\setsecheadstyle{\large\scshape}
\setsubsecheadstyle{\normalsize\itshape}
\setaftersubsubsecskip{-1em}
@@ -118,9 +112,6 @@
% >> article-3 <<
\makechapterstyle{article-3}{
\renewcommand{\rmdefault}{ugm}
\renewcommand{\sfdefault}{phv}
\setsecheadstyle{\large\sffamily\bfseries\MakeUppercase}
\setsubsecheadstyle{\normalsize\itshape}
\setaftersubsubsecskip{-1em}

View File

@@ -8,11 +8,9 @@
% with article-3 \chapterstyle, change to: \pagestyle{memo}
\pagestyle{mako-mem}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[garamond]{mathdesign}
\usepackage{fontspec}
\setmainfont{EB Garamond}
\setsansfont{TeX Gyre Heros}
\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))
%.pdf: %.tex
latexmk -f -pdf $<
latexmk -f -lualatex $<
clean:
latexmk -C *.tex

View File

@@ -1,13 +1,8 @@
\documentclass[12pt]{letter}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\renewcommand{\rmdefault}{ugm}
\renewcommand{\sfdefault}{phv}
\usepackage[garamond]{mathdesign}
\usepackage{fontspec}
\setmainfont{EB Garamond}
\setsansfont{TeX Gyre Heros}
\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('$<')"
%.pdf: %.tex
latexmk -f -pdf $<
latexmk -f -lualatex $<
clean:
latexmk -C *.tex

View File

@@ -103,10 +103,6 @@
% put a period after the section numbers
\setsecnumformat{\csname the#1\endcsname.\enspace}
% set fonts to garamond and helvetica
\renewcommand{\rmdefault}{ugm}
\renewcommand{\sfdefault}{phv}
% material shared between the two modes
\setsubsecheadstyle{\normalsize\itshape}

View File

@@ -7,11 +7,10 @@
% \published tag
\chapterstyle{cdsc-article}
\usepackage[utf8]{inputenc}
\usepackage{fontspec}
\setmainfont{EB Garamond}
\setsansfont{TeX Gyre Heros}
\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}

Binary file not shown.

Binary file not shown.

View File

@@ -88,13 +88,13 @@
\usepackage{url}
% \usepackage{dcolumn}
% \usepackage{booktabs}
% bibliography stuff
\DeclareLanguageMapping{american}{american-apa}
\defbibheading{secbib}[\bibname]{%
\section{#1}%
\markboth{#1}{#1}%
\baselineskip 14.2pt%
\prebibhook}
% bibliography stuff — uncomment these if you load biblatex
% \DeclareLanguageMapping{american}{american-apa}
% \defbibheading{secbib}[\bibname]{%
% \section{#1}%
% \markboth{#1}{#1}%
% \baselineskip 14.2pt%
% \prebibhook}
\def\citepos#1{\citeauthor{#1}'s (\citeyear{#1})}
\def\citespos#1{\citeauthor{#1}' (\citeyear{#1})}