File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 147
147
toctree_plus_types .add ("fixture" )
148
148
149
149
latex_elements = {
150
- "extrapackages " : [ " bookmark" ] ,
150
+ "preamble " : r"\usepackage{ bookmark}" ,
151
151
}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def run(self) -> List[nodes.Node]:
26
26
27
27
# TODO: \setcounter{section}{0}
28
28
# 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" )
30
30
output .append (latex_part_node )
31
31
# self.state.nested_parse(StringList(), self.content_offset, latex_part_node)
32
32
You can’t perform that action at this time.
0 commit comments