diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:25:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:25:40 +0000 |
commit | cf7da1843c45a4c2df7a749f7886a2d2ba0ee92a (patch) | |
tree | 18dcde1a8d1f5570a77cd0c361de3b490d02c789 /sphinx/builders/latex/nodes.py | |
parent | Initial commit. (diff) | |
download | sphinx-cf7da1843c45a4c2df7a749f7886a2d2ba0ee92a.tar.xz sphinx-cf7da1843c45a4c2df7a749f7886a2d2ba0ee92a.zip |
Adding upstream version 7.2.6.upstream/7.2.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sphinx/builders/latex/nodes.py')
-rw-r--r-- | sphinx/builders/latex/nodes.py | 37 |
1 files changed, 37 insertions, 0 deletions
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, +) |