Notes on LaTeX
The support of tagged PDF within is ongoing. The most up-to-date report is available here (direct link to 2024 PDF).
The Overleaf team also has an extensive document on this topic; while they don’t give many concrete suggestions for authors, they do provide a lot of info about the challenges and explanations of the internals and PDF standards.
We value any testing for the advice on this page. Please open a Github issue if you have suggestions.
Because LaTeX was designed as a typesetting program, PDF documents created using LaTeX do not include the document structure and tagging required for accessibility by default. It is possible to create accessible PDF documents using LaTeX but users will need to use additional LaTeX packages and should be aware of accessibility standards. The Accessibility package in LaTeX can be used to add the structure, tagging, and alt text that PDF’s created with LaTeX lack.
From LaTeX Guides
Here is a sample preamble with additions for accessibility:
\DocumentMetadata{
% enables tagging
testphase=phase-III, % declares that the pdf supports the A-2b standard
pdfstandard=A-2b % note: this is only metadata, it does not enforce
% nor test anything
}\documentclass{article} % unclear if amsart is supported, needs more testing
\usepackage[utf8]{inputenc} % unrelated to accessibility
\usepackage{hyperref}
\hypersetup{
pdflang=en-US,
pdftitle={<title of PDF>},
pdfauthor={<author>} }
Documentation for supported key/values for \DocumentMetadata
is given here.
Additional recommendations:
- Use the most up-to-date version of LuaLaTeX/PDFLaTeX available.
- LuaLaTeX or PDFLaTeX support tagging, other engines (e.g. XeTeX) are untested and may not work
- As with HTML, you should write your document using structured tags (
\section
,\subsection
) so that these can be communicated to e-readers. - Likewise, pictures should include alt-text, e.g.
\includegraphic[alt={Rubber Duck}]{ducky.jpg}
- There is also an early prototype for tagging formulas. Use
\DocumentMetadata{testphase={phase-III,math}}
to load. - See the LaTeX project’s report for full details
Further reading
Some links of interest (re: accessible LaTeX):