Page LayoutAlignment of Titles and Page Numbers in ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
eggknock
Posts: 1
Joined: Tue Jul 26, 2011 9:01 am

Alignment of Titles and Page Numbers in ToC

Post by eggknock »

Hi,

does anyone know how to align titles and page numbers in the table of contents such that the page numbers appear on the first line for long titles? Below is a minimal working example showing that the page number appears on the second line.

Code: Select all

\documentclass{book}

\begin{document}

\tableofcontents

\chapter{This is a very very very very very very very very very very very very very long title to illustrate the problem}

\end{document}
I usually work with the tocloft package (which I've excluded from the example), and it allows me to customize almost everything in the table of contents. I haven't found anything for this problem, though.

Cheers,
eggknock

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply