Theses, Books, Title pages ⇒ Long section names extend into margins of Table of Contents
Long section names extend into margins of Table of Contents
My university has strict requirements for 1-inch margins, and I am running into a problem where I have long section names that are running into the margins. I would like to force the long section names to wrap (or force a linebreak) so they don't extend into the margins. Basically, my issue is similar to the one here:
https://tex.stackexchange.com/questions ... -the-margi
However, I tried the solution (adding \- in the section name to help it know where to break), but it didn't work. Any help would be greatly appreciated (I'm not sure how to provide a MWE given my dissertation is over 300 pages long and it uses the custom template).
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
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Long section names extend into margins of Table of Contents
\section[short here]{long and descriptive name at the beginning of the chapter}
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Long section names extend into margins of Table of Contents
What does it mean? No change but in the margin, or an error message? It should be \- by the way, not /-. And in a word, what shall be broken at the margin, not just somewhere. This \- stands for an allowed breakpoint.dadrivr wrote:I tried the solution (adding /- in the section name to help it know where to break), but it didn't work.
Stefan
Long section names extend into margins of Table of Contents
Yes, I used \- (sorry for the confusion). I don't get an error, but the long section name doesn't wrap into the next line at the suggested place, either.Stefan_K wrote:What does it mean? No change but in the margin, or an error message? It should be \- by the way, not /-. And in a word, what shall be broken at the margin, not just somewhere. This \- stands for an allowed breakpoint.dadrivr wrote:I tried the solution (adding /- in the section name to help it know where to break), but it didn't work.
Stefan