Document Classes ⇒ book | Wrong Section and Subsection Enumeration
book | Wrong Section and Subsection Enumeration
I'm working on a thesis template, but I experience some strange issues when I compile my file.
I marked my problem in red, as you can see at page 10/10.
Can anyone explain too me what is wrong? I added the needed files for the compilation in an attachment.
Thanks in advance!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10334
- Joined: Mon Mar 10, 2008 9:44 pm
book | Wrong Section and Subsection Enumeration
- remove this line in layout.tex or comment it out, because it removes the per-chapter-numbering:
Code: Select all
\counterwithout{section}{chapter}
- modify these lines in your document, which define the section counter presentation, which affects the subsection counter as well:
Change it for including the chapter number:
Code: Select all
\renewcommand*\thesection{\roman{section}} \renewcommand*\thesection{\arabic{section}}
Code: Select all
\renewcommand*\thesection{\thechapter.\roman{section}} \renewcommand*\thesection{\thechapter.\arabic{section}}