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).
Thought so. Thanks for the quick response.
This is where being able to add character styles (not just paragraph styles) to a TOC would be useful...
Right. Or something like TOC stoping at inserted special character, or pulling through nested style only.
That could be useful, but it's usually possible to structure target paragraphs and the style applied in TOC generation to get to any reasonable layout and visuals. The OP here wants the somewhat unusual option of picking a few words out of a target paragraph, which gets pretty dicey to implement.
I've done some very elaborate TOCs with the feature as it is... but not with selective use of the target content.
A very complicated way to do it would be to make those paragraphs pseudo run-in, with the bolded portion one paragraph and the rest another. But that makes the text itself very complicated and fragile.
I agree, that cross references would do that job.
But I use often another method:
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!