Skip to main content
oca-ninverso
Participant
September 23, 2022
Question

Table of Contents - First Words of Paragraph Only

  • September 23, 2022
  • 3 replies
  • 389 views

Any trick for TOC to grab the bolded words in paragraphy only?

This topic has been closed for replies.

3 replies

Willi Adelberger
Community Expert
Community Expert
September 23, 2022

I agree, that cross references would do that job.

 

But I use often another method:

  1. I wotk on a new layer.
  2. Write paragraphs as they should appear in the TOC.
  3. Those paragraphs have paragraph styles with a coloured character color during the work.
  4. From these Paragraphs I create the TOC.
  5. At the end I change the character colour to [None].
  6. If I need to make changes I change temporarily the color.
  7. The other time I lock their layer to avoid accidental chnges.
James Gifford—NitroPress
Legend
September 23, 2022

That's good, but I assume you have to align the TOC text with the rest of the text on a main layer... pretty tricky. But possible, and a good approach. I tend not to think of layers for text work!

 

Inspiring
September 23, 2022

This is where being able to add character styles (not just paragraph styles) to a TOC would be useful...

oca-ninverso
Participant
September 23, 2022

Right. Or something like TOC stoping at inserted special character, or pulling through nested style only.

James Gifford—NitroPress
Legend
September 23, 2022

Nothing simple. TOCs don't have a lot of flexibility; they grab the whole paragraph or nothing. This may be another case where using the Cross-Ref feature may work better; it can easily simulate the TOC feature but offers a great deal more flexibility.

 

It's also likely a script could process a TOC to trim it to only those bolded terms (which would need to be bolded through a defined character style, but that's basic).

 

oca-ninverso
Participant
September 23, 2022

Thought so. Thanks for the quick response.