1
0

Compare commits

...

4 Commits

Author SHA1 Message Date
28760d5622 new_tex_uwletter: also remove README and COPYING from generated directories
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 16:55:37 -07:00
3ba1610503 new_tex_uwletter: remove itself from generated directories
The install script was being copied into every new letter directory
it created. Delete it after unpacking so new letter directories only
contain the template itself.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 16:54:02 -07:00
3d10917a40 title should be name not email 2026-04-12 16:47:44 -07:00
2d28230c53 Switch to lualatex and generate accessible PDF/UA-2 output
Add \DocumentMetadata for PDF 2.0 / PDF/UA-2, load tagpdf with
activate-all, extend hypersetup with pdftitle/pdfauthor/pdflang/
pdfdisplaydoctitle, and add alt text to the letterhead and signature
images. Drop xetex-only xltxtra and switch the Makefile from xelatex
to lualatex. Verified compliant with verapdf's PDF/UA-2 profile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 16:43:47 -07:00
3 changed files with 20 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ figures/signature.pdf:
gpg --yes --output $(DEC_SIGIMAGE) --decrypt $(ENC_SIGIMAGE) gpg --yes --output $(DEC_SIGIMAGE) --decrypt $(ENC_SIGIMAGE)
%.pdf: %.tex %.pdf: %.tex
latexmk -f -xelatex $< latexmk -f -lualatex $<
clean: clean:
latexmk -C *.tex latexmk -C *.tex

View File

@@ -23,6 +23,7 @@ then
mv "$WORK_DIR" "$1" mv "$WORK_DIR" "$1"
cd "$1" cd "$1"
mv "washington_letterhead_letter-matrix-deptartment.tex" "$(basename "$1").tex" mv "washington_letterhead_letter-matrix-deptartment.tex" "$(basename "$1").tex"
rm -f "new_tex_uwletter" "README" "COPYING"
# create a symlink farm for the fonts # create a symlink farm for the fonts
rm -rf ./fonts/* rm -rf ./fonts/*

View File

@@ -1,3 +1,8 @@
\DocumentMetadata{
pdfversion=2.0,
pdfstandard=ua-2,
lang=en-US,
}
\documentclass[11pt,letterpaper]{article} \documentclass[11pt,letterpaper]{article}
% MODIFY THE DETAILS IN THIS SECTION TO MATCH WHAT YOU WANT ON /YOUR/ LETTERHEAD % MODIFY THE DETAILS IN THIS SECTION TO MATCH WHAT YOU WANT ON /YOUR/ LETTERHEAD
@@ -6,12 +11,16 @@
\def\phone{mobile 206-409-7191} \def\phone{mobile 206-409-7191}
\def\email{makohill@uw.edu} \def\email{makohill@uw.edu}
\def\web{https://mako.cc/academic/} \def\web{https://mako.cc/academic/}
\def\letterauthor{John Hancock}
\def\lettertitle{Letter from \letterauthor}
\usepackage[top=1.25in,left=1.25in,bottom=1.20in,right=1.25in]{geometry} \usepackage[top=1.25in,left=1.25in,bottom=1.20in,right=1.25in]{geometry}
\usepackage{xltxtra}
\usepackage{fontspec} \usepackage{fontspec}
\usepackage{tagpdf}
\tagpdfsetup{activate-all}
\newopentypefeature{Contextuals}{NoAlternate}{-calt}
\defaultfontfeatures{Kerning=Uppercase,Ligatures=TeX}
\setsansfont{OpenSans}[ \setsansfont{OpenSans}[
Path = ./fonts/OpenSans/, Path = ./fonts/OpenSans/,
@@ -31,6 +40,11 @@ BoldItalicFont = *-BoldItalic
\usepackage[colorlinks=false, \usepackage[colorlinks=false,
pdfborder={0 0 0}, pdfborder={0 0 0},
]{hyperref} ]{hyperref}
\hypersetup{unicode=true,
pdftitle={\lettertitle},
pdfauthor={\letterauthor},
pdflang={en-US},
pdfdisplaydoctitle=true}
\usepackage{tikz} \usepackage{tikz}
\usepackage{lastpage} \usepackage{lastpage}
@@ -43,7 +57,7 @@ BoldItalicFont = *-BoldItalic
\ifnum\thepage=1 \ifnum\thepage=1
\begin{tikzpicture}[remember picture,overlay,every node/.style={inner sep=0,outer sep=0}] \begin{tikzpicture}[remember picture,overlay,every node/.style={inner sep=0,outer sep=0}]
\node at (current page.north west) [anchor=north west] \node at (current page.north west) [anchor=north west]
{\includegraphics{figures/matrix_header.pdf}}; {\includegraphics[alt={University of Washington letterhead}]{figures/matrix_header.pdf}};
% add the department name % add the department name
\node at (current page.north west) [anchor=north west, xshift=1.19in, yshift=-0.56in] \node at (current page.north west) [anchor=north west, xshift=1.19in, yshift=-0.56in]
{{\fontsize{14pt}{16pt} \fontspec{MatrixIIOT-Book.otf}[ {{\fontsize{14pt}{16pt} \fontspec{MatrixIIOT-Book.otf}[
@@ -127,7 +141,7 @@ Sed ullamcorper morbi tincidunt ornare massa eget egestas purus. Feugiat pretium
Sincerely, Sincerely,
\includegraphics[width=1.7in]{figures/signature.pdf}\\ \includegraphics[width=1.7in,alt={Signature of \letterauthor}]{figures/signature.pdf}\\
John Hancock\\ John Hancock\\
Assistant Professor of Communication\\ Assistant Professor of Communication\\
Adjunct Assistant Professor of Human-Centered Design and Engineering Adjunct Assistant Professor of Human-Centered Design and Engineering