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).
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
- 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: 10397
- 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