Forum Discussion
lb483
May 29, 2023Copper Contributor
TC field code and TOC order
I have a document similar to the following: { TC "Level 1" \l 1 }{ TC "Level 2" \l 2 }Level 3 <-- style name = "myHeader" TOC definition is: { TOC \f \h \z \t "myHeader,3" } Howeve...
- May 30, 2023
lb483 if, in the body of the document, you want all of the entries, that you want to appear in the Table of Contents, on a single line (which would be unusual to say the least), you need to have a Style Separator (CTRL+ALT+ENTER) between each of the entries.
lb483
May 30, 2023Copper Contributor
Hi. This is the smallest document which demonstrates the issue 🙂
May 30, 2023
lb483 if, in the body of the document, you want all of the entries, that you want to appear in the Table of Contents, on a single line (which would be unusual to say the least), you need to have a Style Separator (CTRL+ALT+ENTER) between each of the entries.
- lb483May 30, 2023Copper Contributor
Thanks. I'll give that a go. Bit of a niche requirement but if I don't put the TC fields on the same line as the myHeader text, I get an unwanted blank line in the output unless I make the return hidden - which is a pain.
- lb483May 31, 2023Copper Contributor
The style separators worked, thank you. Annoyingly they're not available on Word for the Mac so I've had to move over to the PC but at least I have a solution.
Thanks Doug_Robbins_Word_MVP
- Stefan_BlomMay 31, 2023MVP
You should be able to put a TC field at the end of an existing paragraph; that way, it shouldn't occupy any extra space (after you turn off the display of hidden text).
- lb483May 31, 2023Copper ContributorThanks. Unfortunately this puts the TOC entries in the wrong order (as per the o/p)