![]() |
|
#1
|
|||
|
|||
![]()
I have a docment that I now want to add a ToC to. The heading styles are easy. Problem is I have some paragraphs that start with "(text) Step X - xyz" followed by an entire paragraph that I want to include but only the "Step X - xyz" part. I tried a TC field but since the step number is a SEQ value when I copy it into the TC field the number increments. Changing SEQ to a straight number defeats the purpose of automation.
I then tried a linked style where I could apply a style called TC2 to just the "(text) Step X - xyz". It seemed to work, but then I started to try and "fix" it and suddenly the only part showing in the ToC was the "(text)" part. I tried to take that out of the TC2 style and put the "Step X - xyz" and suddenly they stopped showing up in the ToC at all. It seems that applying a linked style to a TOC doesn't work if the linked style skips text at the beginning of the paragraph. 1) Any ideas on how to make the TC field work without causing the SEQ to increment? 2) Any better ideas on using a linked style that doesn't start at the beginning of the para? 3) Adding an index field {XE ... } has a keyboard shortcut (Shift-Alt-X). Does anyone know if there is a similar shortcut for marking {TC...} entries? Thanks! |
#2
|
||||
|
||||
![]()
Within the TC field, you can insert a cross-reference to the SEQ field of your caption; that way, you will get the correct numbers. Remember to show hidden text when you work with the TC fields.
To open the Mark Table of Contents Entry dialog box, you can press Alt+Shift+O.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
#3
|
|||
|
|||
![]() Quote:
Quote:
Quote:
|
#4
|
|||
|
|||
![]()
Never mind. I figured it out (the main question that is). Seems almost all web sites kept talking about setting a bookmark. Way too hard. This way is easier.
Start with: (text) Step 1 – Do this first First, replace the "1" with {SEQ step} At the end of the line, insert { TC “Step {SEQ \c step} – Do this first” \l 2} the \c switch repeats the previous SEQ number (keeps it from incrementing again) the \2 sets the TC to a second level entry in the TOC |
#5
|
||||
|
||||
![]()
Good idea. It assumes, of course, that the TC field is located after the referenced SEQ field.
__________________
Stefan Blom Microsoft Word MVP Microsoft 365 apps for business Windows 11 Professional |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
tays01s | Word | 11 | 07-21-2011 12:34 PM |
![]() |
NuggetSoftware | Word | 3 | 06-03-2011 02:51 PM |
![]() |
Jonart | Word | 2 | 03-31-2011 10:51 PM |
Table of contents | markos97 | Word | 0 | 10-26-2010 08:52 AM |
![]() |
erika | Word | 1 | 06-10-2009 10:40 AM |