From cf7da1843c45a4c2df7a749f7886a2d2ba0ee92a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 19:25:40 +0200 Subject: Adding upstream version 7.2.6. Signed-off-by: Daniel Baumann --- sphinx/builders/latex/nodes.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sphinx/builders/latex/nodes.py (limited to 'sphinx/builders/latex/nodes.py') diff --git a/sphinx/builders/latex/nodes.py b/sphinx/builders/latex/nodes.py new file mode 100644 index 0000000..2c008b9 --- /dev/null +++ b/sphinx/builders/latex/nodes.py @@ -0,0 +1,37 @@ +"""Additional nodes for LaTeX writer.""" + +from docutils import nodes + + +class captioned_literal_block(nodes.container): + """A node for a container of literal_block having a caption.""" + pass + + +class footnotemark(nodes.Inline, nodes.Referential, nodes.TextElement): + """A node represents ``\footnotemark``.""" + pass + + +class footnotetext(nodes.General, nodes.BackLinkable, nodes.Element, + nodes.Labeled, nodes.Targetable): + """A node represents ``\footnotetext``.""" + + +class math_reference(nodes.Inline, nodes.Referential, nodes.TextElement): + """A node for a reference for equation.""" + pass + + +class thebibliography(nodes.container): + """A node for wrapping bibliographies.""" + pass + + +HYPERLINK_SUPPORT_NODES = ( + nodes.figure, + nodes.literal_block, + nodes.table, + nodes.section, + captioned_literal_block, +) -- cgit v1.2.3