LaTeX is a powerful document preparation language used to generate formatted text for print and distribution, primarily as PDF. It is especially remarkable for its capability to build and display math formulae both inline and as blocked figures, which has led to it being very popular in math, sciences, and engineering. It uses a compiler like OverLeaf, PanDoc, or TeXLive to process supplied markup into typesetting.
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. LaTeX users wishing to create accessible documents can try the methods described below but should still check their documents for accessibility.
Since LaTeX documents can be extensive, extra time/money for this work should be taken into account for any delivery dates and budgets. Special consideration should be taken for any included graphics and math formulae.
The Accessibility package in LaTeX can be used to add the structure, tagging, and alt text that PDF's created with LaTeX lack. To use the package, you will need to load it into the preamble of your LaTeX document and choose the package options. There are two option arguments accepted for the package: untagged or tagged and flatstructure or highstructure. In order to create a more accessible PDF, you will want to choose [tagged, highstructure].
\usepackage[tagged, highstructure]{accessibility}
Once you have loaded in the accessibility package, you can use the \alt environment to add alt text to figures.
\begin{figure}
\centering
\includegraphics[width=10cm]{apollo17_earth.jpg}
\alt{Image of the Earth from outer space}
\caption{Image of the Earth from the Apollo 17 mission}
\label{fig:earth}
\end{figure}
To make mathematical formulae accessible in your LaTex document, you will need to load in the axessibility package into preamble.
\usepackage{axessibility}
In order to make your equations readable by the package, you will need to use the equation environment for all equations and can use to $$ inline mode.
\begin{equation}
\frac{1 + \sqrt{5}}{2}
\end{equation}
Because of the limitations of LaTeX at this time, many experts recommend converting your LaTeX documents to HTML and MathML. This can be accomplished through a number of applications including LaTeXML and Pandoc.
NOTE: This content was adapted from Michigan State University and The Ohio State University College of Engineering.
Please also see our guides on: