Make the PDF accessible
The templates produce a tagged PDF through LaTeX's built-in tagging:
\DocumentMetadata{…, tagging=on} at the top of main.tex, compiled with
LuaLaTeX. Most fixes are about content the author must supply, not settings.
Beamer slides are the exception: beamer cannot take \DocumentMetadata, so
the slides template is not tagged. Its accessibility check reports
pdf-not-tagged as an expected warning; fix the title, language and alt-text
problems, and do not try to add tagging to a beamer deck.
Steps
Build and check:
overfull build overfull check --json --checks accessibilityFix problems in this order: document-level settings, then figures, then tables, then the rest. Run
overfull explain <rule>when unsure.Rebuild and recheck after each group.
Document level
\DocumentMetadatamust come before\documentclassand keeptagging=on,pdfstandardand thelangsetting. In the paper template it sits inside an\ifdefined\directluatest that picks the math setting for LuaLaTeX or pdfLaTeX; keep both branches in step. Do not remove it to fix a build error; fix the error instead (seefix-build).- Title: set in
metadata.tex. The PDF title must match the document title. - Language:
langin\DocumentMetadatamust match the text (en,de, …). Mark passages in another language with the document's language package (for example babel's\foreignlanguage). - Do not change the engine (except via the arXiv path in
prepare-arxiv) or the PDF standard settings (pdfstandard,pdfversion).
Figures
Every figure needs alt text. See add-figure for how to write it. If you do not
know what a figure shows, ask the author. Do not describe an image you cannot
see, and do not write placeholder text such as "image".
Tables
- Use real
tabulartables for data, never images of tables. - Give each data table a header row. Follow the template's table example for marking the header so it is tagged as header cells.
- Do not use tables for layout.
Math, links, lists
- Write math in math mode, never as images.
- Link text should make sense alone: "the dataset documentation", not "here".
- Use
itemize/enumeratefor lists, not manual dashes and line breaks. - Do not rely on colour alone to carry meaning in figures or text.
veraPDF failures
The Docker image and the template workflow run veraPDF. Its failures appear in the accessibility check with the rule and, when known, the page. Common fixes:
Overfull's own rules cover the basics; veraPDF failures have ids of the form
verapdf-<clause> (run overfull explain verapdf-<clause>). With --no-verapdf,
or without veraPDF installed, only the basics run (verapdf-not-run, info).
| Failure (rule id) | Likely fix |
|---|---|
Figure without alternate text (figure-missing-alt) |
Add alt text to that figure. |
Missing or wrong language (pdf-missing-language) |
Set lang in \DocumentMetadata. |
Missing title / DisplayDocTitle (pdf-missing-title) |
Set the title in metadata.tex. |
Not tagged (pdf-not-tagged), or untagged content (verapdf-<clause>) |
A package that does not support tagging yet. Report the package to the author; do not remove tagging. |
Fonts not embedded (font-not-embedded) |
Usually an included PDF figure. Re-export it with embedded fonts. |
PDF/UA not claimed (pdfua-not-claimed, info) |
The templates claim it already. In another project, tell the author; adding pdfstandard=ua-2 (with pdfversion=2.0) is their decision, because the PDF must then pass veraPDF. |
Limits
Automated checks cannot judge whether alt text is accurate, reading order makes sense, or colour contrast in figures is enough. List these for the author to review by hand.
Done
overfull check --checks accessibilityhas no errors.- Every alt text you wrote is based on the data or on the author's description.
- You listed what still needs a human check.