6 Notes on LaTeX
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 Accessibilty package in LaTeX can be used to add the structure, tagging, and alt text that PDF’s created with LaTeX lack.
From LaTeX Guides
The support of tagged PDF within is ongoing. The most up-to-date report is available here.
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>} }
Additional recommendations:
- Use the most up-to-date version of latex/pdflatex available.
- PDFLaTeX or LuaLaTeX 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
Documentation for supported key/values for \DocumentMetadata
is given here.
I (TG) am unable to find more information about what level of the PDF/A standard is supported by LaTeX right now.
The above recipe scores 100% on Blackboard’s accessibility checker but more in depth testing is needed (and welcome!).
6.1 Packages
This package is not meant for direct use for end users.
The package offers tools to experiment with tagging and accessibility using pdfLATEX and LuaTEX. It isn’t meant for production but allows the user to try out how difficult it is to tag some structures; to try out how much tagging is really needed; to test what else is needed so that a pdf works e.g. with a screen reader. Its goal is to get a feeling for what has to be done, which kernel changes are needed, how packages should be adapted.
This package is not actively developed. Please read the author’s README for more info.
The accessibility package is intended to create tagged, structured PDF documents from LATEX source code. It allows to produce tagged PDF output following Adobe’s PDF-1.5 and 1.6 specifications.
As of 2020 the author discourages the use of this package.
PDF documents containing formulas generated by LATEX are usually not accessible by assistive technologies for visually impaired people and people with special educational needs (i.e., by screen readers and braille displays). The axessibility package manages this issue, allowing to create a PDF document where the formulas are read by these assistive technologies, since it automatically generates hidden comments in the PDF document (by means of the /ActualText attribute and/or suitable tags) in correspondence to each formula.
6.2 Further reading
Some links of interest (re: accessible LaTeX):