From 124edda2818d7844747bad80ab253f95b935625e Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Wed, 10 Feb 2021 01:38:51 +0900 Subject: [PATCH 01/12] refactor: LaTeX: Assign node_ids to footnotemark and footnotetext On converting footnote nodes for the LaTeX writer, node_ids for footnote nodes are almost cleared. This copies the original node_id to the footnotemark node (as refid) and footnotetext node (as node_id). It's useful to improve footnote features. --- sphinx/builders/latex/transforms.py | 44 ++++++++++++++--------------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/sphinx/builders/latex/transforms.py b/sphinx/builders/latex/transforms.py index 402cc3fe5e6..03a0f0e2eb0 100644 --- a/sphinx/builders/latex/transforms.py +++ b/sphinx/builders/latex/transforms.py @@ -192,7 +192,7 @@ class LaTeXFootnoteTransform(SphinxPostTransform): headings having footnotes 1 - +