View Single Post
 
Old 03-08-2023, 08:41 AM
Charles Kenyon Charles Kenyon is offline Windows 11 Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,472
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Attached is a template that demonstrates these principles.

The TOC is using TC fields to combine Headings 1 and 2 on one line and looks like this:

The generic TC Field looks like this:
Code:
{ TC “{ STYLEREF  "Heading 1" \n }: { StyleRef "Heading 2" }” \l 1 }
In the document, these headings are separate paragraphs. If you want to use the Building Blocks, be sure to download the template rather than just creating a new document. You do not need to use the building blocks to do this, they just may make it easier.

If your Chapter numbering is not automatic numbering, then the first StyleRef field should not have the \n switch. Useful StyleRef tricks by Suzanne Barnhill, MVP


You do not need to use Heading 2 for your secondary text but cannot use the same two styles. They can look the same, but the StyleRef fields will not work with two of the same style. Without using the StyleRef fields, you will need to separately write the TC Field for each chapter. With them, you can copy and paste the field or insert it from AutoText.
Reply With Quote