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

creating space between table of contents entries and page numbers

New Here ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

I'm making a list of figures using the table of contents tool and wanted to keep the text from going all of the way to right side so that the page numbers are seperated from the text. In the paragraph style for the TOC entry I added a right indent of 1" with a last line indent of -1". This worked for most of them(like figure 12) but for a couple of entries(like figure 11) the last line of text ended up running really close to the page number.

Capture.PNG

I saw one thing about adding a second right indent tab in the TOC styles but when I did that it created the space between the text and page number but also ended up adding a line of dot leaders to each entry like this.

Capture 2.PNG

Are there any other ways to automate making there be a minimum distance between the text for the entry and the page number without adding the second row of dot leaders or manually adding soft returns to the entries that aren't working correctly?

Thanks 

 

TOPICS
How to

Views

59

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 ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

TOC entries should have at least one paragraph style defined, or often, a style for each TOC level. In that paragraph style you can define pretty much any line spacing (indent, tabs, right margin) you like.

 

One way to invisibly control wrap in things like TOC entries is to use hard (nonbreaking) spaces in the text, so that given segments are 'glued together' without relying on margins or manual wrap.


╟─ Word & InDesign to Kindle & EPUB: a Guide to Pro Results (Amazon) ─╢

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 ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

The last line right indent is for handling those very long and potentiality multi-line titles in a TOC:
https://www.rockymountaintraining.com/adobe-indesign-what-is-a-last-line-right-indent/

 

~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
New Here ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

Thats working for almost all of the entries, but on some the text is the right length on the last line to be able to get really close to the page number since the last line can be longer, is there any way to force a minimum amount of space between the text and page number to spill the text down to the next line or do I just have to manually move it down to the next line with soft returns for the couple of instances where the last line gets really close to the page number since it doesn't have the indent to let the page number go to the right side?

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
New Here ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

Heres a second example that might be a better example where the last entry isn't as close to the page number as before but where the last line can get closer to the number than the 1" indent that the first line has, is it possible to force 1" of space between the page number and the text on the last line without just inserting soft returns?

Capture 3.PNG

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 ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

Hi @Christian23706628ydkp:

 

Let me begin by saying that I never want to do anything manually in a table of contents because I want be able to update it and move on. 

 

I think your right indent is a bit bigger than you need. If you decrease it, you'll pull species to the previous line and it will work itself out. But of course, that might cause a problem in another paragraph that we haven't see yet.

 

You can also go to the source paragraph and add a non-breaking space between two words, and that will carry into the TOC. For example, you could add a non-breaking space between tree and species in the table title, regenerate the TOC and they will both move to line 2 and InDesign will create a third line for Arkansas, 2015. (If it just moves 2015, and a non-breaking space between those two words as well.)

 

~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 ,
Sep 15, 2023 Sep 15, 2023

Copy link to clipboard

Copied

LATEST
quote

 is there any way to force a minimum amount of space between the text and page number to spill the text down to the next line or do I just have to manually move it down to the next line with soft returns for the couple of instances where the last line gets really close to the page number since it doesn't have the indent to let the page number go to the right side?


By @Christian23706628ydkp

One way to do it would be to add one or more fixed width spaces, like em spaces, before the tab. an em is equal in width to the point size of the type in use; an en is half that, so it's pretty easy to figure out how may spaces you need for a minimum length.

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