18
0
Files
cdsc_tex/letter_template/text.tex
Benjamin Mako Hill 2b29f051a6 letter_template: add tagged PDF (PDF/UA-2) accessibility
Enables \DocumentMetadata (pdfversion=2.0, pdfstandard=ua-2) and loads
tagpdf with activate-all, plus hyperref metadata (pdftitle, pdfauthor,
pdflang, pdfdisplaydoctitle) since the letter class does not expose
\title/\author for the PDF management layer to pick up. Verified
compliant with verapdf's PDF/UA-2 profile.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 21:12:22 -07:00

58 lines
1.2 KiB
TeX

\DocumentMetadata{
pdfversion=2.0,
pdfstandard=ua-2,
lang=en-US,
}
\documentclass[12pt]{letter}
\usepackage{fontspec}
\setmainfont{EB Garamond}
\setsansfont{TeX Gyre Heros}
\usepackage[letterpaper,left=1.3in,right=1.3in,top=0.8in,bottom=0.8in]{geometry}
\usepackage{tagpdf}
\tagpdfsetup{activate-all}
\usepackage{hyperref}
\hypersetup{unicode=true,
pdftitle={Letter},
pdfauthor={Benjamin Mako Hill},
pdflang={en-US},
pdfdisplaydoctitle=true}
\begin{document}
\begin{letter}{Person Letter is Addressed To\\
Followed by Address}
\address{Benjamin Mako Hill\\
Massachusetts Institute of Technology\\
Room E15-312\\
20 Ames Street\\
Cambridge, MA 02139-4307}
\signature{Benjamin Mako Hill}
\location{Massachusetts Institute of Technology\\
Room E15-020c\\
20 Ames Street\\
Cambridge, MA 02139-4307}
\telephone{(206) 409-7191}
\opening{To whom it may concern,}
\setlength\parindent{0.25in}
Text of Letter goes here. Text of Letter goes here. Text of Letter
goes here. Text of Letter goes here. Text of Letter goes here. Text of
Letter goes here. Text of Letter goes here. Text of Letter goes
here. Text of Letter goes here.
\closing{Regards,}
\end{letter}
\end{document}