Making LaTeX documents accessible

This page describes how users of LaTeX can adapt their source files or documents to make them compliant with new accessibility requirements. There are multiple options below, depending on an author's specific document issue, and there is at least one option for everyone.

Note: users of LaTeX use many different applications and environments, use many different packages and classes, and use them to produce many kinds of documents from class handouts to conference papers to textbooks and dissertations to slides. For that reason, there can be no one "magic bullet" that authors can all use, but there are several options that are magic bullet-like for a large number of cases.

Tagging PDFs

The biggest factor in making a PDF accessible is ensuring it is "tagged", which means that the file contains metadata describing the structure of the document, so that it can be parsed by other computer programs. By default, the LaTeX compiler does not produce tagged PDFs, but it , with a very new and somewhat experimental feature.

This feature is easy to enable with a short preamble and does not require any adaptation to your TeX files. However, it is not compatible with a number of packages; when it works, it almost completely solves your accessibility issues, and when it doesn't work, you need to try something else.

Alt text and other practices

While tagging is the most important fix (and sometimes all you need), there are other accessibility matters you may need to address. One is having "alt text" for any images in a document. For a tagged document, this can be achieved by adding an alt={} tag in an \includegraphics line, e.g.:

\centerline{\includegraphics[scale=0.35,alt={A binary tree}] {binaryTree}}

Alt text that is identified by Yuja as missing can also be added in Yuja itself. In either case, the first step with the biggest impact is getting the document tagged.

Follow these instructions to try tagging on your TeX file

  1. Tagging is a recent feature, and you’ll have problems if you’re using an old LaTeX compiler from years back. It is strongly recommended that you update before doing anything else.

  2. This preamble is 9 lines, that you place verbatim at the very start of your TeX file, before \documentclass. You can download the preamble here (.tex file), or just type it in:

    \DocumentMetadata
     {uncompress, %only for debugging!!
      pdfversion=2.0,
      testphase={phase-III,math,firstaid} %load and activate tagpdf and uses all the phase-III code
      }
    \pdfinfo{
       /Author (This Author Name is Added to the PDF file)
       /Title  (This Title is embedded in the PDF file)
    }
    

    The second tag provides an Author and Title metadata item in the PDF file. That prevents Yuja from complaining that the file is missing a Title attribute, so that you automatically get 100% instead of 99% like everyone else.

  3. Unfortunately, tagging doesn’t work with all classes and packages. In particular, it won't work with the beamer class for making slides, and it won't work with common journal and conference paper templates. It will, however, work with the standard LaTeX style for many of our "common case" documents like handouts, syllabi, assignment sheets, etc. It should also work with the thesis and dissertation styles used at Binghamton University.

    At this step, try to compile the document with the preamble. If you get errors (AND you already ensured you're using the latest LaTeX compiler), then you have to go to step four. If it compiles and the document is mangled, you also go to step four. If it looks good, upload it to Brightspace and see what happens.

  4. (optional)

    Try one of the following options:

    • For beamer presentations: create your PDF in the usual way, and upload it to Brightspace. When you get a 0% for an "untagged" PDF, select "OCR formats" from the Yuja menu and then select "OCR Overlaid PDF”. You can either download the PDF that is created, or replace it directly in Yuja.

      In many cases, this will produce a document that is properly tagged with a high score in Yuja. With no illustrations, you may get 100% right off the bat (see below regarding alt text for figures).

    • If OCR overlay does not work, you can submit the file to the University for remediation. While it is submitted for remediation, you can use the document you currently have as course material, until you get the remediated version back.

 

Print Article

Related Articles (3)

Learn why and how to write good alt text for your images. See examples of decorative and complex image alt text. See steps for adding alt text in various apps and software.
Discover the features of YuJa Panorama and how it helps you manage your course files for accessibility. Learn how do to common tasks in Panorama.
A round-up of tools and resources for accessibility in science content and materials.

Related Services / Offerings (3)

ITS provides assistance with making PDF documents accessible. If you have a PDF that needs to be remediated to meet accessibility standards, our team can help ensure it is properly tagged and formatted for screen readers and other assistive technologies.