Page Layouthyperref | ToC Entries exceeding Margin

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

hyperref | ToC Entries exceeding Margin

Post by hbaromega »

Hi,

I'm writing a dissertation where I'm using \hyperref command. However, because of this, if my chapter or section title becomes long enough, it does not break into a newline in the Table of contents and hence it crosses the margin.

How can I fix this? I cannot break manually since the Table of contents is generated automatically when I use \tableofcontents command.

Thanks.
Last edited by hbaromega on Thu Nov 24, 2011 7:31 pm, edited 1 time in total.

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

hyperref | ToC Entries exceeding Margin

Post by localghost »

Add the breaklinks option to the options for hyperref.
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

Re: hyperref | ToC Entries exceeding Margin

Post by hbaromega »

Thanks.
Post Reply