In part 1 of this series I described the best way to create and format a simple table of contents. The result is pictured below.
I don't like the way the multi-line TOC entries crowd the page numbers near the right edge of the frame. Most people would fix this by manually inserting line breaks (shift-return) in the text to cause it to break early. This isn't efficient for a long TOC, and it makes the text more difficult to edit in the future. Here's a better way.
1. Select the TOC text with the Type tool, and enter a value in the Right Indent field of the Control panel or Paragraph panel. This will push all the right edge of all the text to the left.
2. Enter the same value you entered in step 1, but negative, in the Last Line Right Indent field of the Control panel or Paragraph panel. This will pull the last line of text back out to the right edge of the text frame.
Using this method will make it easy to revise the TOC at any time without having to fuss with the formatting.