This page allows selected LaTeX tagging examples to be processed with LaTeX to produce PDF which may then be viewed or validated to the PDF/UA-2 accessibility standard.
Validation is provided by the open source veraPDF validator hosted at texlive.net and by the LaTeX project show-pdf-tags validation hosted on the same server. As a convenience, a link is provided to open the generated PDF at ngPDF. ngPDF is provided free of charge by its authors, although is not open source, it is not a necessary component of the validation services shown on this page.
The tagging status page lists many test files showing the the tagging status of over a thousand LaTeX packages. A small sample are highlighted here, mostly corresponding to current work items.
The examples are presented in an online editor to allow you to
experiment and change the examples. The resulting TeX files are not
stored and all generated PDF are deleted from the server after an
hour. The current public release of lualatex-dev from
TeXLive is used to process all
examples. Development code from the LaTeX git repositories is not
used here.
The hawkdraw package is a newly contributed
package, not by the core LaTeX team, which is designed to produce
accessible vector drawings. The test demonstrates various ways in
which the drawing may be tagged using alt or ActualText to provide
accessible text, or using artifact to hide the paths from AT and
allow the text in the nodes of the diagram to be tagged individually.
\DocumentMetadata
{
lang=en-US,
pdfversion=2.0,
pdfstandard=ua-2,
tagging=on,
uncompress
}
\documentclass{article}
\usepackage{hawkdraw}
\title{hawkdraw package tagging test}
\begin{document}
\begin{hawkdraw}
\stroke (0,0) circle[radius=10pt] ;
\end{hawkdraw}
\begin{hawkdraw}[alt={A circle}]
\stroke (0,0) circle[radius=10pt] ;
\end{hawkdraw}
\begin{hawkdraw}[actualtext={A circle}]
\stroke (0,0) circle[radius=10pt] ;
\end{hawkdraw}
\begin{hawkdraw}[artifact]
\stroke (0,0) circle[radius=10pt] ;
\end{hawkdraw}
\begin{hawkdraw}
\stroke (0,0) -- (5cm,0) node {foo} ;
\end{hawkdraw}
\begin{hawkdraw}[alt={A node}]
\stroke (0,0) -- (5cm,0) node {foo} ;
\end{hawkdraw}
\begin{hawkdraw}[actualtext={A node}]
\stroke (0,0) -- (5cm,0) node {foo} ;
\end{hawkdraw}
\begin{hawkdraw}[artifact]
\stroke (0,0) -- (5cm,0) node {foo} ;
\end{hawkdraw}
\begin{hawkdraw}
\stroke (0,0) -- (5cm,0) node {foo} ;
\begin{scope}[artifact]
\stroke (0,-1cm) -- (5cm,-1cm) node {foo} ;
\end{scope}
\end{hawkdraw}
\end{document}
The titlesec package is currently incompatible with the LaTeX tagging code, and this example demonstrates that no PDF is generated and just the error log is shown.
It is included here as it is expected that an accessible version of this package functionality will be developed soon as part of a wider effort to implement LaTeX section headings via a new template interface producing accessible PDF outputs.
\DocumentMetadata
{
lang=en-US,
pdfversion=2.0,
pdfstandard=ua-2,
tagging=on,
}
\documentclass{report}
\usepackage{titlesec}
\titleformat{\section}
{\LARGE\sffamily\slshape}
{\thesection}{1em}{}
\titlespacing{\section}
{-6pc}{3.5ex plus .1ex minus .2ex}{1.5ex minus .1ex}
\begin{document}
\chapter{Some chapter}
\section{Some section}
\subsection{Some subsection}
Normal text
\end{document}