GeneralToC, LoF and LoT Entries sometimes overflow

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rohit
Posts: 1
Joined: Sun Mar 11, 2012 11:14 pm

ToC, LoF and LoT Entries sometimes overflow

Post by rohit »

My school wants the entries in the table of contents, list of figures, etc. to end about 3/4th of the way from the right hand side. To do this I'm using the tocloft package and the following command:

Code: Select all

\cftsetrmarg{1in}
The following without using the tocloft package produces the same results:

Code: Select all

\makeatletter
\renewcommand{\@tocrmarg}{1in}
\makeatother
However, there are still some entries which exceed the margin setting I'm giving here. If these entries had their last line split, they would most likely have only one or two words in the new line. Unfortunately, this behavior doesn't quite look good.

Using

Code: Select all

\cftsetpnumwidth{1in}
in addition to what I've corrects the problem above, but introduces the problem that the dots don't go all the way to the page number, which looks weird.

Essentially, I want latex to split the entries (lines) in the list of figures, even if splitting it would produce short lines with only one or two words.

Any suggestions on how to do this will be greatly appreciated,
Rohit

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply