I am using version 1.4 of the Doctoral Thesis template at http://www.latextemplates.com/template/ ... ral-thesis.
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).
Theses, Books, Title pages ⇒ Long section names extend into margins of Table of Contents
Long section names extend into margins of Table of Contents
Last edited by dadrivr on Sat Jul 30, 2016 9:35 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Long section names extend into margins of Table of Contents
Use shorter names.
\section[short here]{long and descriptive name at the beginning of the chapter}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- 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
LaTeX.org admin
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
Re: Long section names extend into margins of Table of Conte
Nevermind, I tried placing the break in a different part of the word and it worked. Thanks!