Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Forcing TOC entries to wrap to avoid lines with just a dot leader

I am writing a thesis with multiple chapters and subchapters, and using styles to automatically generate a properly-numbered table of contents. Each TOC entry has the chapter (or section) title, a dot leader, and the page number against the right margin. (It is essentially the default TOC formatting.)

If the length of a chapter title is just a bit shorter than the length of a full line of text - so that there isn't room for a dot leader and page number before hitting the right margin - then the entry wraps to a second (or subsequent) line in the TOC. This creates a full line of ........ (dot leader) followed by the page number at the right margin.

This results in a TOC that looks like

  1. Introduction............................. 1
  2. This chapter title doesn't work
    ................................................ 5
  3. Chapter with a short title.......... 7
  4. This chapter has a very long
    title that wraps just fine........... 10
  5. Last chapter........................... 11

Short titles work fine, long titles wrap to multiple lines and look fine; it's just those awkward exactly-one-line headers. Any ideas for how I can get that Chapter 2 title to work?

(Using LibreOffice Writer 4.2.4.2 under Windows 8.1.)

click to hide/show revision 2
No.2 Revision

Forcing How can I force TOC entries to wrap to avoid lines with just a dot leaderleader?

I am writing a thesis with multiple chapters and subchapters, and using styles to automatically generate a properly-numbered table of contents. Each TOC entry has the chapter (or section) title, a dot leader, and the page number against the right margin. (It is essentially the default TOC formatting.)

If the length of a chapter title is just a bit shorter than the length of a full line of text - so that there isn't room for a dot leader and page number before hitting the right margin - then the entry wraps to a second (or subsequent) line in the TOC. This creates a full line of ........ (dot leader) followed by the page number at the right margin.

This results in a TOC that looks like

  1. Introduction............................. 1
  2. This chapter title doesn't work
    ................................................ 5
  3. Chapter with a short title.......... 7
  4. This chapter has a very long
    title that wraps just fine........... 10
  5. Last chapter........................... 11

Short titles work fine, long titles wrap to multiple lines and look fine; it's just those awkward exactly-one-line headers. Any ideas for how I can get that Chapter 2 title to work?

(Using LibreOffice Writer 4.2.4.2 under Windows 8.1.)

How can I force TOC entries to wrap to avoid lines with just a dot leader?

I am writing a thesis with multiple chapters and subchapters, and using styles to automatically generate a properly-numbered table of contents. Each TOC entry has the chapter (or section) title, a dot leader, and the page number against the right margin. (It is essentially the default TOC formatting.)

If the length of a chapter title is just a bit shorter than the length of a full line of text - so that there isn't room for a dot leader and page number before hitting the right margin - then the entry wraps to a second (or subsequent) line in the TOC. This creates a full line of ........ (dot leader) followed by the page number at the right margin.

This results in a TOC that looks like

  1. Introduction............................. 1
  2. This chapter title doesn't work
    ................................................ 5
  3. Chapter with a short title.......... 7
  4. This chapter has a very long
    title that wraps just fine........... 10
  5. Last chapter........................... 11

Short titles work fine, long titles wrap to multiple lines and look fine; it's just those awkward exactly-one-line headers. Any ideas for how I can get that Chapter 2 title to work?

(Using LibreOffice Writer 4.2.4.2 under Windows 8.1.)