• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Table Of Contents - 2 line title problems

Engaged ,
May 10, 2018 May 10, 2018

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?

TOCSS.png

Views

4.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 11, 2018 May 11, 2018

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.

  1. Use the forced line break within a paragraph (Shift + Enter) as suggested above. This will keep the heading as one paragraph.
  2. Note: be sure to put a spacebar before the Shift + Enter so that when it's removed in the TOC, the remaining words don't run on together.
  3. When you define your TOC style, check the box in the lower l
...

Votes

Translate

Translate
Guide ,
May 11, 2018 May 11, 2018

Copy link to clipboard

Copied

Apply behind the first line a space and a Shift+Enter.

content-before.png

When ready, select the table of content only and go to Edit > Find/Replace > GREP.

Note: The text field "Replace" is selected but empty.

content-grep.png

After applying the GREP the table of content looks like this:

content-after.png

Fenja

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2018 May 11, 2018

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)
Screenshot 2018-05-11 07.34.21.pngScreenshot 2018-05-11 07.34.36.png

Or add Balance Ragged Lines, which will balance the lines without any additional human input.

Screenshot 2018-05-11 07.37.16.pngScreenshot 2018-05-11 07.37.23.png

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2018 May 11, 2018

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.

  1. Use the forced line break within a paragraph (Shift + Enter) as suggested above. This will keep the heading as one paragraph.
  2. Note: be sure to put a spacebar before the Shift + Enter so that when it's removed in the TOC, the remaining words don't run on together.
  3. When you define your TOC style, check the box in the lower left to Remove Forced Line Break.

Voila!

TOC-Remove-Ending.png

|    Bevi Chagnon   |  Designer, Trainer, & Technologist for Accessible Documents |
|    PubCom |    Classes & Books for Accessible InDesign, PDFs & MS Office |

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 11, 2018 May 11, 2018

Copy link to clipboard

Copied

Thanks for this!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 22, 2022 Feb 22, 2022

Copy link to clipboard

Copied

scratched my head a lot before finding this, thank you!

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 22, 2022 Feb 22, 2022

Copy link to clipboard

Copied

LATEST

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.

 

|    Bevi Chagnon   |  Designer, Trainer, & Technologist for Accessible Documents |
|    PubCom |    Classes & Books for Accessible InDesign, PDFs & MS Office |

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 11, 2018 May 11, 2018

Copy link to clipboard

Copied

Glad to help, matthewdee!

|    Bevi Chagnon   |  Designer, Trainer, & Technologist for Accessible Documents |
|    PubCom |    Classes & Books for Accessible InDesign, PDFs & MS Office |

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines