Let LaTeX writer support the standard role "acronym". (#14202)

This commit is contained in:
Günter Milde
2025-12-22 12:01:46 +01:00
committed by GitHub
parent d9fc225904
commit e5cacbc407
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -60,6 +60,7 @@ Contributors
* Florian Best -- log improvements
* Glenn Matthews -- python domain signature improvements
* Gregory Szorc -- performance improvements
* Günter Milde -- various small fixes
* Henrique Bastos -- SVG support for graphviz extension
* Hernan Grecco -- search improvements
* Hong Xu -- svg support in imgmath extension and various bug fixes
+4
View File
@@ -33,6 +33,10 @@ Bugs fixed
Patch by Adam Turner
* Remove incorrect static typing assertions.
Patch by Adam Turner
* #14050: LaTeXTranslator fails to build documents using the "acronym"
standard role.
Patch (PR #14202) by Günter Milde
Testing
-------
+6
View File
@@ -2108,6 +2108,12 @@ class LaTeXTranslator(SphinxTranslator):
def depart_abbreviation(self, node: Element) -> None:
self.body.append(self.context.pop())
def visit_acronym(self, node: Element) -> None:
self.visit_abbreviation(node)
def depart_acronym(self, node: Element) -> None:
self.depart_abbreviation(node)
def visit_manpage(self, node: Element) -> None:
return self.visit_literal_emphasis(node)