Masterclass: Accessible LaTeX for Open Textbooks

Many open textbooks in mathematics, physics and engineering are written in LaTeX, because it handles equations and cross-references so well. Its traditional PDF output, however, has historically carried little of the structure that assistive technology needs. This lesson covers what teachers and authors can do today to make LaTeX-based OER more accessible, and where the tools are still developing.

Open book resting on a computer circuit board
AI-generated illustration

Lesson 1: Write the source as if structure matters

Whatever route you take to the final output, it relies on the source being well structured. In practice that means:

Avoid packages and tricks that draw text as graphics, and keep custom macros readable, because some converters understand only standard commands.

Lesson 2: Tagged PDF from LaTeX

The LaTeX Project has been working for several years on native support for tagged PDF, with the goal of PDF/UA-compliant output. Recent LaTeX releases let authors switch on this experimental support with a \DocumentMetadata declaration at the very start of the document, and coverage of standard classes and common packages has grown release by release. Because the work is ongoing, check the LaTeX Project's current documentation for which classes and packages are supported before relying on it for a whole textbook, and keep your TeX distribution up to date.

Whatever you produce, test it: run the PDF through a checker such as PAC or Acrobat's accessibility check, and listen to a few pages with a screen reader to confirm headings, reading order and equations come through sensibly.

Lesson 3: The HTML route

For many open textbooks, the most accessible output is not a PDF at all but HTML, where equations can be rendered with MathJax so that screen readers can speak them and readers can zoom without losing layout. Routes include:

  1. PreTeXt, an authoring system used by a number of open mathematics textbooks, which produces HTML, PDF and other formats from one XML source.
  2. Converters such as LaTeXML, Pandoc or tex4ht (via make4ht), which turn existing LaTeX into HTML with varying fidelity depending on the packages used.
  3. Publishing platforms such as Pressbooks, which accept LaTeX-style maths in an otherwise web-based book.

Offering both an HTML edition and a PDF gives students a choice, and the HTML often becomes the version most people read.

Lesson 4: Licences and accessibility together

When you adapt an openly licensed LaTeX book, the licence usually permits format conversion. Converting a CC BY-ND book to accessible HTML is a harder question: format changes alone are generally not treated as adaptations, but restructuring or adding descriptions may be, so read the CC FAQ and ask your copyright librarian. Disability-related copyright exceptions in many countries may also apply. With BY or BY-SA books there is no such hurdle, and sharing your improved accessible version back with the original project helps everyone.

For Word users, the equivalent workflow is in making an accessible PDF from a Word handout; what a PDF checker examines is shown in the annotated tagging diagram.