Skip to content

Commit 740013d

Browse files
committed
Still still trying to fix PDF docs
1 parent a91167f commit 740013d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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