How to align a long title in a table of content so that it won't be over page numbers

2

I'm trying to change the alignment of the TOC of this document in order to make a long title, which occupies more than one line, to break to the next line before they are vertically aligned to the page numbers. This is how it looks:

Lorem ipsum dolor sit amet, consectetur adipiscing elit
sed do eiusmod tempor............................... 22

But I want it to be like this (first line is supposed to be justified):

Lorem ipsum  dolor sit  amet, consectetur  adipiscing 
elit sed do eiusmod tempor ..........................22

I can't seem to figure out how to fix it. Changing the right spacing also moves the page numbers.

Any solutions? Thanks.

Molx

Posted 2015-01-10T20:43:05.457

Reputation: 192

Can you manually insert a line-break [Shift-Enter] where you want it? Downside, of course, is that if you repaginate or change text you've got to do it again. – DrMoishe Pippik – 2015-01-11T03:22:22.313

Thanks for the idea, but it doesn't work. The line break still makes the upper line justified and with the same length, so it just increases the space between words.

I'm thinking the best solution is making the text aligned to the left. It does what I want as long as the line isn't as long as the available space, but it will work, for my cases. – Molx – 2015-01-12T22:34:03.937

Answers

1

This is possible. You have to manually edit the indentation and tab rules for the TOC style that you want to modify.

  1. Open the Styles pane.
  2. Right-click the style that you want to modify.
  3. Click Modify...
  4. Click the Format >> Paragraph...
  5. In the Indentation section change the Right indentation level to the position where you want the text to wrap to the next line.
  6. Click the Tabs... button.
  7. Enter a tab stop at the position where you want the page number to be right-aligned (past the indentation position that you just set).
  8. Set the Alignment to right.
  9. Set the desired Leader character. (optional)
  10. Click Add.
  11. You may need to remove the previous tab position by selecting it from the list and clicking Clear.
  12. Click OK.

Jim Fell

Posted 2015-01-10T20:43:05.457

Reputation: 5 069

0

Select the text. Right click. Select 'paragraph'. Put in values of indentation (say 0.5"). This will solve your problem.

Naveed

Posted 2015-01-10T20:43:05.457

Reputation: 1

And will it also place the page number at the desired position? – RalfFriedl – 2019-04-03T21:39:05.513

I tried it myself on a TOC I made. The 'paragraph' formatting doesn't touch the page number. So it works. – Naveed – 2019-04-03T23:28:34.813