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
- Introduction… 1
- This chapter title doesn’t work
… 5 - Chapter with a short title… 7
- This chapter has a very long
title that wraps just fine… 10 - 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.)