Copy link to clipboard
Copied
Copy link to clipboard
Copied
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).
—
Copy link to clipboard
Copied
Thought so. Thanks for the quick response.
Copy link to clipboard
Copied
This is where being able to add character styles (not just paragraph styles) to a TOC would be useful...
Copy link to clipboard
Copied
Right. Or something like TOC stoping at inserted special character, or pulling through nested style only.
Copy link to clipboard
Copied
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.
—
Copy link to clipboard
Copied
I agree, that cross references would do that job.
But I use often another method:
Copy link to clipboard
Copied
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!
—