Header and table of contents
Solved
El_Ciego
-
Raymond PENTIER Posted messages 58216 Registration date Status Contributor Last intervention -
Raymond PENTIER Posted messages 58216 Registration date Status Contributor Last intervention -
Hello,
I have a small issue in Word that I'm encountering while writing an internship report, specifically regarding the management of the table of contents.
Is it possible to include a title contained in a header in a table of contents?
For example: Section 1 => Style "Heading 1" title contained in the header and therefore visible at all times throughout section 1
Chapter 1 => Style "Heading 2" classic title that appears in the development
Part 1 => Style "Heading 3" classic title that appears in the development
Part 2 => Style "Heading 3" classic title that appears in the development
Chapter 2 => Style "Heading 2" classic title that appears in the development
Section 2 => "Heading Style 1" title contained in the header and therefore visible at all times throughout section 2
...
Basically, I want "Heading 1" to be present only in the headers. I do not want it to appear in the chronological development.
However, when I insert my table of contents, all the "Heading 1" titles present in the headers are not included!!
Does anyone have a solution to automatically force these titles to appear in the table of contents?
Thank you in advance,
Best regards
I have a small issue in Word that I'm encountering while writing an internship report, specifically regarding the management of the table of contents.
Is it possible to include a title contained in a header in a table of contents?
For example: Section 1 => Style "Heading 1" title contained in the header and therefore visible at all times throughout section 1
Chapter 1 => Style "Heading 2" classic title that appears in the development
Part 1 => Style "Heading 3" classic title that appears in the development
Part 2 => Style "Heading 3" classic title that appears in the development
Chapter 2 => Style "Heading 2" classic title that appears in the development
Section 2 => "Heading Style 1" title contained in the header and therefore visible at all times throughout section 2
...
Basically, I want "Heading 1" to be present only in the headers. I do not want it to appear in the chronological development.
However, when I insert my table of contents, all the "Heading 1" titles present in the headers are not included!!
Does anyone have a solution to automatically force these titles to appear in the table of contents?
Thank you in advance,
Best regards
Configuration: Windows Vista Internet Explorer 7.0
3 answers
-
A month and a half later, I'm here to report this, available in FAQ
How to automatically display the chapter of the relevant page in the header?
Three solutions:
1. Either insert a STYLEREF field in the header by choosing the style of the Chapter paragraph. This is the best solution. Advantage: you can have the same header throughout the document without needing to insert section breaks since this field retrieves the Title n style of the current page. If there are multiple titles on the same page, you can choose between the first or the last.
By default, the STYLEREF field will insert the first Title n of the current page, and if there is none, it searches for the last one used since the beginning of the section; it will be updated each time a new Title n appears.
If you add the switch l, the field will insert not the first but the last Title n found on the page (starts from the bottom).
2. Alternatively, create a bookmark on the chapter name: select the word(s), then Insert Bookmark and in your header, perform Insert Reference to Bookmark and select the bookmark name of the chapter (solution that also works in W95)
3. Or insert a reference in the header (Insert Reference) to the Title style (provided that the chapter name has a Title 1, 2, or other style. Advantage: you can not only add the title but also the title number alone
--
Retirement is great! Especially in the Caribbean... :-)
Raymond-
Thank you for these 3 solutions. They certainly come late for the internship report that has already been submitted and raised these questions, but they will be very useful for the next report I will have to make in 3 months.
I keep your great advice handy, thanks again,
Best regards,
Christophe (El_Ciego)
-
-
"Actually, I would like the "title 1" to be present only in the headers. I do not want it to appear in the development timeline." IMPOSSIBLE!
Headers and footers are not designed to receive titles, and can in no way be processed by the "Table of Contents" assistant.
Therefore, you must enter the title in its normal place on the page and in the header; this way, the reader will read the chapter title as usual, and will read it again (preferably in smaller characters) in the header of all pages of the section.
--
Retirement is great! Especially in the Caribbean... :-)
Raymond-
-
-
Hello, I don't know why Word makes this impossible because when you go to "Table of Contents" and then to "Options", in the available styles that can be prioritized you can see headers, footers, titles..., but as you say it doesn't work. It's very disappointing that we can't include headers in the table of contents.
-
Very disappointing, especially since people seem intent on misusing software features.
Clearly, the table of contents is built from the chapter headings assigned a Title 1, Title 2 style, etc.
The headers are not meant to receive chapter titles.
As a result, everything is perfectly logical and functional, and there is no reason to be disappointed.
* Why not also include table of contents elements in captions, bookmarks, and footnotes, while we're at it?
-
-
You can!
Simply, you shouldn't at the same time request an automatic summary; you do it manually.
Or, if you have the courage and patience, you continue as you started and manually (rather, by typing) insert the level 1 headings into the summary.
--
Retirement is great! Especially in the Antilles... :-)
Raymond