Applying Heading Styles to Words and not Whole paragraphs.
Report abuse
Thank you.
Reported content has been submitted
You need the Heading styles in order to build the multilevel list, and you can't avoid applying those styles to entire paragraphs.
Although you can apply "linked styles" (those that appear in the Styles pane with the a¶ notation) to just a selected part of a paragraph, all that does is to apply the character part of the linked style as direct formatting to those words. It does not make them into anything the TOC recognizes.
The alternative left to you is to insert TC fields that contain the desired words/phrases, and build the TOC exclusively from those fields. Here are the necessary steps:
- First, display nonprinting and hidden text by clicking the ¶ button. The TC fields are automatically formatted as hidden, but you need to see them while you're creating them.
- Go to a heading that you want (partially) in the TOC. Copy the words you want in the TOC.
- At the end of the heading (or even between any two words), press Ctrl+F9 to insert a pair of field markers. Between the markers, type TC and then a pair of double quotes, and paste the desired words between the quotes. For example, {TC "First Heading"}.
- Repeat the preceding step for every heading that needs to appear in the TOC. Save often, and double-check your work.
- At the location for the TOC, click References | Table of Contents | Insert Table of Contents.
- In the dialog, after choosing the appearance/format you want, click the Options button at the lower right.
- In the options dialog, uncheck both the Styles box and the Outline Levels box; and check the Table Entry Fields box. Then OK both dialogs.
This should get you the TOC you want. If you add, remove, or edit headings in the document, it's up to you to remember to insert, delete, or modify the TC fields and then update the TOC -- none of this is automatic.
https://jay-freedman.info
Report abuse
Thank you.
Reported content has been submitted
13 people found this reply helpful
·Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
The other fairly easy (to me) way to get what you want is to start with two paragraphs, one the heading and one the following text. Place the cursor in the first (or heading) paragraph and press Ctrl+Alt +Enter to apply the style separator formatting to the heading's paragraph mark. The style separator is like applying the hidden attribute to the paragraph mark, but with the style separator the paragraphs are "joined" even when nonprinting formatting marks are displayed.
Report abuse
Thank you.
Reported content has been submitted
18 people found this reply helpful
·Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Question Info
Last updated November 4, 2024 Views 16,231 Applies to: