Skip to content

Commit cec963d

Browse files
committed
Switching back from "book" class to "manual" fixes TOC issue
Looks like the sphinx manual class did some extra magic in order that the bibliography and the index appears correctly. Page numbering needs to be set manually now since manual class does not know \*matter commands.
1 parent 7cdcefa commit cec963d

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

text/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@
194194

195195
# Additional stuff for the LaTeX preamble.
196196
'preamble': '''\\usepackage[multidot]{grffile}
197-
\\setcounter{tocdepth}{3}''',
197+
\\setcounter{tocdepth}{2}''',
198198
}
199199

200200
# If the tag 'a4' is given we switch to a4paper
@@ -207,7 +207,7 @@
207207
# (source start file, target name, title, author, documentclass [howto/manual]).
208208
latex_documents = [
209209
('index', 'ModelicaByExample.tex', u'Modelica by Example',
210-
u'Michael M. Tiller', 'book'),
210+
u'Michael M. Tiller', 'manual'),
211211
]
212212

213213
# The name of an image file (relative to this directory) to place at the top of

text/source/index.rst

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
.. raw:: latex
77

8-
\frontmatter
8+
\pagenumbering{roman}
99
\setcounter{secnumdepth}{-2}
1010

1111
************
@@ -22,8 +22,9 @@ Front Matter
2222

2323
.. raw:: latex
2424

25-
\mainmatter
2625
\setcounter{secnumdepth}{2}
26+
\pagenumbering{arabic}
27+
2728

2829
###################
2930
Describing Behavior
@@ -50,18 +51,19 @@ Object-Oriented Modeling
5051
components/subsystems
5152
components/architectures
5253

53-
###############
54-
Advanced Topics
55-
###############
5654

57-
.. toctree::
58-
:maxdepth: 3
55+
.. todo::
56+
Advanced topics need to be written.
5957

60-
advanced
58+
..
59+
###############
60+
Advanced Topics
61+
###############
6162
62-
.. raw:: latex
63+
.. toctree::
64+
:maxdepth: 3
6365

64-
\backmatter
66+
advanced
6567

6668

6769
##################

0 commit comments

Comments
 (0)