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.
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.
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?
Copy link to clipboard
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.
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?
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?
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.)
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?
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.