Skip to content

Commit 21f44e2

Browse files
committed
Doc: Try using the "bookmark" package
1 parent 3245b85 commit 21f44e2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc-source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,7 @@
145145

146146
manpages_url = "https://manpages.debian.org/{path}"
147147
toctree_plus_types.add("fixture")
148+
149+
latex_elements = {
150+
"extrapackages": ["bookmark"],
151+
}

doc-source/latex_toctree_sections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def run(self) -> List[nodes.Node]:
2626

2727
# TODO: \setcounter{section}{0}
2828
# https://tex.stackexchange.com/questions/271075/reset-counter-section-in-part
29-
latex_part_node = nodes.raw(text=f"\\setcounter{{chapter}}{{0}}\n\\setcounter{{section}}{{0}}\n\\phantomsection\n\\part{{{caption}}}", format="latex")
29+
latex_part_node = nodes.raw(text=f"\\setcounter{{chapter}}{{1}}\n\\setcounter{{section}}{{0}}\n\\\\part{{{caption}}}", format="latex")
3030
output.append(latex_part_node)
3131
# self.state.nested_parse(StringList(), self.content_offset, latex_part_node)
3232

0 commit comments

Comments
 (0)