LaTeXTranslator fails to build documents using the "acronym" standard role. (original) (raw)
Describe the bug
The documentation of the Moin 2 project at https://app.readthedocs.org/projects/moin-20/ fails to build because of an
NotImplementedError: <class 'sphinx.writers.latex.LaTeXTranslator'> departing unknown node type: acronym
The <acronym> element is defined in the docutils.dtd and documented in https://docutils.sourceforge.io/docs/ref/doctree.html#acronym and implemented in the Python class docutils.nodes.acronym.
It is supported by all Docutils writers and Sphinx's HTML writer.
How to Reproduce
Try to export a document using the "acronym" standard role to LaTeX.
For example, index.rst containing the line
This document is written in reStructuredText (:ac:`rST`).
make latex
Environment Information
Platform: linux; (Linux-6.12.48+deb13-amd64-x86_64-with-glibc2.41)
Python version: 3.13.5 (main, Jun 25 2025, 18:55:22) [GCC 14.2.0])
Python implementation: CPython
Sphinx version: 8.2.3
Docutils version: 0.22.4b1.dev
Jinja2 version: 3.1.6
Pygments version: 2.18.0
Sphinx extensions
Additional context
The issue occured with a recent Documentation update at readthedocs
(https://app.readthedocs.org/projects/moin-20/)
The environment described above was used to reproduce.