Copy link to clipboard
Copied
I have a catalog which some of the titles of the chapters are on two lines like this: see the screenshot the white text in the black box
When I select the style name I gave this ( WHITE TITLE TOC)
and choose as the style for the TOC
I get
AIR CONDITIONING - 1
PERFORMANCE CHECK - 1
HOW CAN I POPULATE THE TOC WHERE TWO LINES ARE ONE ENTRY, FOLLOW?
The TOC utility looks for the regular paragraph mark and considers it to be the indicator of new headings. That's why you're getting 2 entries in the TOC.
Here's an easy solution.
Copy link to clipboard
Copied
Apply behind the first line a space and a Shift+Enter.
When ready, select the table of content only and go to Edit > Find/Replace > GREP.
Note: The text field "Replace" is selected but empty.
After applying the GREP the table of content looks like this:
Fenja
Copy link to clipboard
Copied
As per Fenja, the trick is to keep all the lines as a single paragraph. You could use his line-break in the document option, and then remove them in the TOC or:
Try a non-breaking space (Type > Insert Break Character)
Or add Balance Ragged Lines, which will balance the lines without any additional human input.
After you update the TOC using either of these solutions, you should be good to go. IMHO, the best option is to find something that works in both places and doesn't cause additional steps that we might forget when rushed. I'd think the Balance Ragged Lines on in the source doc—and off in the TOC—would be perfect.
~Barb
Copy link to clipboard
Copied
The TOC utility looks for the regular paragraph mark and considers it to be the indicator of new headings. That's why you're getting 2 entries in the TOC.
Here's an easy solution.
Voila!
Copy link to clipboard
Copied
Thanks for this!
Copy link to clipboard
Copied
scratched my head a lot before finding this, thank you!
Copy link to clipboard
Copied
Glad to help.
You might want to look at this other thread about TOCs, https://community.adobe.com/t5/indesign-discussions/create-a-toc-with-on-one-line-the-text-of-2-styl...
There is a link to some free online tutorials.
Copy link to clipboard
Copied
Glad to help, matthewdee!