Skip to content

Commit 674c453

Browse files
committed
Update .gitignore
1 parent 740013d commit 674c453

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc-source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,5 @@
147147
toctree_plus_types.add("fixture")
148148

149149
latex_elements = {
150-
"extrapackages": ["bookmark"],
150+
"preamble": r"\usepackage{bookmark}",
151151
}

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{{section}}{{0}}\n\\bookmarksetupnext{{level=0}}\n\\part{{{caption}}}\n\\setcounter{{chapter}}{{1}}", format="latex")
29+
latex_part_node = nodes.raw(text=f"\\setcounter{{section}}{{0}}\n\\bookmarksetupnext{{level=part}}\n\\part{{{caption}}}\n\\setcounter{{chapter}}{{1}}", 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)