Text FormattingFormatting of the table of content is lost...

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Sam
Posts: 62
Joined: Fri Nov 30, 2007 1:43 pm

Formatting of the table of content is lost...

Post by Sam »

Dear All,

I have a problem, I am not quite sure why I lost the order of the chapters in teh TOC in my thesis...

Please see attached...up to Chpater 2 the number are correct,...beyond chapter 2...the nubering carry on as If all the rest of chapters are...in chapter 2....

Thanks for ur help
Attachments
lost TOC.JPG
lost TOC.JPG (84.53 KiB) Viewed 3387 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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Formatting of the table of content is lost...

Post by frabjous »

Can you post a minimal working example that duplicates the problem?

(If you follow the instructions at the link above, the process of creating the minimal example might itself reveal where the problem lies.)
Sam
Posts: 62
Joined: Fri Nov 30, 2007 1:43 pm

Re: Formatting of the table of content is lost...

Post by Sam »

Thanks but I don t think there such a MWE for my problem as the file is big and it is to do with the TOC...I usd to compile the same .tex code and the output file somehow now is changes...I did not change any thining in the code or the class file...

But I got recently this error, Please see attached

Coudl it be due to this error?

Thanks for your help
Attachments
TXCerror.jpg
TXCerror.jpg (16.78 KiB) Viewed 3364 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Formatting of the table of content is lost...

Post by frabjous »

Sam wrote:Thanks but I don t think there such a MWE for my problem as the file is big and it is to do with the TOC...I usd to compile the same .tex code and the output file somehow now is changes...I did not change any thining in the code or the class file...
There is no situation in which a MWE is inappropriate. Did you read the link I gave you? Even if you can't create one from the ground up, you should be able to create one by working in the other direction. But it appears your problem has changed.

It sometimes takes three compilations before a table of contents appears correctly.
But I got recently this error, Please see attached

Coudl it be due to this error?
Try starting a new thread in the TeXnicCenter subforum. I don't use TXC, or Windows for that matter, and have no no clue what that error means, but if you post there you're more likely to attract the attention of someone who does. It doesn't look like the kind of error that would be related to your TOC numbering issue, however.
Sam
Posts: 62
Joined: Fri Nov 30, 2007 1:43 pm

Formatting of the table of content is lost...

Post by Sam »

Sam wrote:Dear All,

I have a problem, I am not quite sure why I lost the order of the chapters in teh TOC in my thesis...

Please see attached...up to Chpater 2 the number are correct,...beyond chapter 2...the nubering carry on as If all the rest of chapters are...in chapter 2....

Thanks for ur help
Hello,

I still get the same problem of loosing the formatting of the table of content although there are no errors in the output...

there are however 5 warnnings!!!

is there anyone who could help?

Thankssssssssssssssss
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Formatting of the table of content is lost...

Post by frabjous »

It has already been made clear under what conditions it would be possible to help you with this issue. This is not something someone can solve "just by thinking about it". We need to see sample code that generates the problem. I gave you a link to instructions on how to create such an example.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Formatting of the table of content is lost...

Post by localghost »

Sam wrote:Thanks but I don t think there such a MWE for my problem as the file is big and it is to do with the TOC...I usd to compile the same .tex code and the output file somehow now is changes...I did not change any thining in the code or the class file... […]
You should work on your general attitude towards the forum. It's not the first time that you have been asked for a properly phrased question along with an appropriate example.

Regarding the problem, you should check the particular code for the concerned chapter heading. It seems like it was done with the \chapter* command and then added to the ToC with \addcontentsline.


Thorsten
Post Reply