Table of contents cannot be created despite styles

Solved
Océane8429 -  
Raymond PENTIER Posted messages 58546 Registration date   Status Contributeur Last intervention   -
Good evening,

I have used the creation of a table of contents many times, but today it’s not working. I have applied headings as usual, but Word tells me that this is not the case. I have tried applying different styles to other parts of my text, but it still doesn't detect anything. Do you have any idea what the problem is? I copied and pasted passages from documents; perhaps they had editing styles and that's what caused my document to bug? I am really at a loss since this is something I do all the time ^^ Thank you if you can help me :)

Have a nice evening everyone :)

Configuration: Windows / Firefox 47.0

2 réponses

C-Claire Posted messages 4562 Registration date   Status Membre Last intervention   2 250
 
Hello Océane8429,

You don't mention if you're using Word's default styles (Heading 1, Heading 2, etc.) or your own styles.
So, I'll go ahead and give you my little explanation ;-)

There are at least 3 methods to automate a table of contents:
1. Designate entry fields, useful for very specific tables derived from unstructured documents, for example.
2. Use Microsoft styles even if it means modifying their characteristics (Heading 1, Heading 2, etc.) but, depending on Word's settings, they can indeed be polluted by copy/pasting from other documents, and they're indistinguishable from your own styles.
3. Use paragraph hierarchy levels either directly in the headings or, more effectively, via your own styles: it's easy and flexible to manage.

Hierarchy levels range from 1 to 9 corresponding to the 9 possible levels in a table of contents.
They are assigned via Outline mode or simply via the command [Format] | "Paragraph". By default, it indicates "Body Text", a level not used for the table of contents.

In your document, check if your headings have a hierarchy level.
When you insert the table of contents, in its dialog box, click the [Options] button, check that "Hierarchy Levels" is checked, and in the previous window, specify the levels you want to display in the table.

One of the many benefits of these levels is that if you have a heading that doesn't adhere to any of the styles you've created in terms of appearance, for example "Introduction" or "Appendices", and you don't want to create a style just for one title, you just need to assign it level 1. It will appear in the table at the same level as your main headings.

If you can't figure it out, press |Alt] [F9] to display the table of contents code and enter it here, or take up Raymond's suggestion and send us an excerpt from your document.

--
C-Claire
4
Océane8429
 
Hello C-Claire, thank you for your detailed and precise response, I have attached the document in response to Raymond's comment, I will still try to see what I can do with your advice :)
0