Skip to content

Commit 5f26a5c

Browse files
Add the logics to include a table of contents for the latex exporter.
1 parent 05f6f11 commit 5f26a5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

share/templates/latex/base.tex.j2

+6
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,17 @@ override this.-=))
213213
((* endblock header *))
214214

215215
((* block body *))
216+
216217
\begin{document}
217218
((* block predoc *))
218219
((* block maketitle *))\maketitle((* endblock maketitle *))
219220
((* block abstract *))((* endblock abstract *))
220221
((* endblock predoc *))
222+
((* block tableofcontents *))
223+
((* if resources.include_tableofcontents *))
224+
\tableofcontents
225+
((* endif *))
226+
((* endblock tableofcontents *))
221227

222228
((( super() )))
223229

0 commit comments

Comments
 (0)