• Skip to main content
  • Skip to footer

eSAIL

Engineering Studio for Advanced Instruction & Learning

  • Home
  • Faculty Services
    • Course Design
    • Canvas Support
    • Faculty Learning
    • Mediasite
    • Helpful Tools
  • Faculty Learning
    • Faculty Learning
    • Online Teaching Tips
    • Digital Accessibility Resources
    • Accessibility Series
    • Tutorials
    • Online Courses
    • Live Workshops
    • Webinars
    • Frequently Asked Questions (FAQ)
  • Contact
    • Contact Us
    • About Our Team
    • eSAIL’s Research Activities
    • Physical Location
    • Subscribe to our Newsletter
    • Website Feedback
Home » Faculty Tutorials » How to Make LaTeX Documents Accessible

November 3, 2025 By Lani Draper

How to Make LaTeX Documents Accessible

Introduction: Creating Accessible LaTeX Documents

Creating accessible LaTeX documents is essential for ensuring that all readers, including those using assistive technology, can effectively engage with your content. Search engines, consequently, prioritize content that is clear and easy to consume.

This tutorial provides a step-by-step guide on how to make LaTeX documents accessible. By following these instructions, therefore, you will learn how to produce documents that are compatible with screen readers, compliant with accessibility standards, and ready for platforms like Canvas.


Step 1: Setting up Overleaf Compiler and Version

Note: LaTeX uses different compilers (like pdfLaTeX, LaTeX, and LuaLaTeX). For the MathML features required for accessibility to work correctly, you must use LuaLaTeX. In addition, it is imperative that you select Tex Live Version 2025 (or the most recent version) for these accessibility features to function properly.

The instructions to select LuaLaTeX and version 2025 are as follows:

  1. Click on the “Menu” button located on the top left corner of the Overleaf document.
    Screenshot of the Overleaf interface highlighting the 'Menu' button in the top left corner.
  2. Click on the “Compiler” drop-down menu to open the list.
  3. Locate and select “LuaLaTeX.”
    A screenshot of the Overleaf settings menu. A callout box directs the user to click the Compiler menu and select LuaLaTeX.
  4. To use the correct Tex version, next, locate the “Tex Live Compiler” drop-down menu, click on it, and select 2025 if it’s not already selected.
  5. Finally, once completed, the menu setup should match the following screenshot:
    Screenshot showing the final Overleaf menu setup with LuaLaTeX and Tex Live 2025 selected.

    Go to top


Step 2: Defining the Accessible Document Class

The first major step in creating an accessible LaTeX document is setting up the document class. The \documentclass command is vital because it determines the document’s type and accessibility configuration.

The commands required for accessibility are:

\DocumentMetadata{
tagging = on,
lang = en,
pdfversion = 2.0,
pdfstandard = UA-2,
pdfstandard = A-4f,
tagging-setup = {math/setup={mathml-AF,mathml-SE}, extra-modules={verbatim-mo}}}

This configuration ensures proper MathML inclusion using two methods: firstly, the AF method, and secondly, the SE method.

  • The AF (Associated File) method, where a MathML representation of each formula **resides** within an associated file embedded in the PDF.
  • The SE (Structure Element) method, where the MathML representation is embedded directly into PDF structure elements (the tags tree).

Go to top


Step 3: Tagging LaTeX Content for Accessibility

Some LaTeX tags are more accessible than others. Therefore, for each of the content areas below, use the recommended tags to improve your document’s compliance.

3.1 Math Equations (Inline and Displayed)

For inline math mode (equations shown within a sentence), it is recommended to use the standard $ $ delimiters to define a math expression.

Example: Define the loop gain $L(s)=G(s) G_{c}(s)$. The output:

The rendered LaTeX output for the inline math example.

 

 

For an equation in displayed math mode (equations on their own line), conversely, it is recommended to use \[ \].

Example: \[T(s)=\frac{Y(s)}{R(s)} \]. The output:

 

The rendered LaTeX output for the displayed math example.

3.2 Accessible Tables

This is the general form of creating accessible tables, which is essential for ensuring the header row is correctly identified: \tagpdfsetup{table/header-rows=1}

The full LaTeX code should look like the following:

\begin{table}
\caption{Example} % This is a separate, accessible element
\begin{center}
\tagpdfsetup{table/header-rows=1} % Only the 'Name' and 'Value' row is the header
\begin{tabular}{lr}
Name&Value\\
This& 11 \\
That & 2
\end{tabular}

\end{table}

3.3 Adding Alt Text to Images

Images require alt text (alternative text) to make documents accessible to screen readers. The standard command for placing an image in the document is:

\begin{figure}[H]
    \centering
    \includegraphics[width=.75\textwidth]{Images/img1.png}
    \caption{Unity Feedback Configuration for Error Signal Analysis}
    \label{fig:UnityFeedback}

The square brackets ([]) in the \includegraphics command are used to pass key-value options like width and alt text. To add alt text, specifically, insert a comma and the line: alt={Unity Feedback Configuration for Error Signal Analysis}.

All together, the accessible \includegraphics command should look like: \includegraphics[width=.75\textwidth,alt={Unity Feedback Configuration for Error Signal Analysis}]{Images/img1.png}

The full graphics command with alt text should now look like the following:

\begin{figure}[H]
    \centering
    \includegraphics[width=.75\textwidth,alt={Unity Feedback Configuration for Error Signal Analysis}]{Images/img1.png}
    \caption{Unity Feedback Configuration for Error Signal Analysis}
    \label{fig:UnityFeedback}

We used Adobe Acrobat to verify the creation of alt text:

Screenshot from Adobe Acrobat verifying the alt text property of an image.

Go to top


Step 4: Verification and Canvas Upload

  1. Recompile, proofread, and Export your LaTeX file to PDF.
  2. Upload your file to Canvas and use the Ally tool to check the accessibility score.
  3. If any additional changes are required, then always make those changes in the original LaTeX document, upload, and replace the previous version.

Go to top


Conclusion

Following these recommended steps significantly improves the accessibility of LaTeX documents, leading to better performance in accessibility checkers and compatibility with screen readers.

 

Go to top

Filed Under: Accessibility, Faculty Tutorials

Previous Post: « Updating your Canvas Home Page
Next Post: Making Handwritten Lecture Notes Accessible »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Texas A&M University Engineering

Footer

About Our Team

Our team is comprised of individuals with development, video producing, accessibility, writing, and learning/teaching expertise – all ready to partner with faculty...
Meet eSAIL Team Members!

Contact

Online Course & Mediasite Support
eSAIL@tamu.edu
We'd love to hear from you!
Contact Us

Quick Links

  • Site Map
  • Website Feedback
  • Submit Website Issue
  • State Links & Policies

Site Search & Subscribe

Get tips each quarter to make each semester more successful than the last!
Subscribe to our Newsletter

© 2025 · Texas A&M University · All Rights Reserved · Log in