diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-02-13 14:19:41 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-02-13 14:20:42 +0300 |
commit | 01d06f9ffe0cd2388156fb53287496f45165519c (patch) | |
tree | c2f0425a129cc078d5c538de0cf186cc2e16a1a2 /sphinx/writers/latex.py | |
parent | 6f0a8f3516063ebd3cbef503832f65e0f8adcc72 (diff) |
Fix #10175: LaTeX: named footnote ref is linked to an incorrect footnote
A named footnote reference will be converted to a hyperlink to an
incorrect footnote if the name is also used in the different document.
Diffstat (limited to 'sphinx/writers/latex.py')
-rw-r--r-- | sphinx/writers/latex.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/writers/latex.py b/sphinx/writers/latex.py index a2905e807..289669549 100644 --- a/sphinx/writers/latex.py +++ b/sphinx/writers/latex.py @@ -571,6 +571,7 @@ class LaTeXTranslator(SphinxTranslator): def visit_start_of_file(self, node: Element) -> None: self.curfilestack.append(node['docname']) + self.body.append(CR + r'\sphinxstepscope' + CR) def depart_start_of_file(self, node: Element) -> None: self.curfilestack.pop() |