Generalwrong table of content order

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
harrymatth
Posts: 8
Joined: Sun Dec 19, 2010 11:54 pm

wrong table of content order

Post by harrymatth »

Merry Christmas!

I am preparing a thesis using my school's latex templates. There is a strange problem in the table of content after I compile the sources. The 'CHAPTER' heading should start before chapter 1, but instead it appears after chapter 1, before chapter 2.

Please see the attached zip archive samplethesis.zip for all sources which also includes a pdf file which highlighted the wrong order in table of contents.

Thanks for your help in advance

Harry
Attachments
samplethesis.zip
file including all sources and pdf output
(47.58 KiB) Downloaded 148 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

wrong table of content order

Post by torbjorn t. »

No idea why, but using input instead of include for chapter 1, fixes this for me. That is, use

Code: Select all

\input{chapter1}
rather than

Code: Select all

\include{chapter1}
The latter adds a \clearpage before the contents of the file, maybe that has something to do with it.
Post Reply