LaTeX forum ⇒ Theses, Books, Title pagesLong section names extend into margins of Table of Contents Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
dadrivr
Posts: 8
Joined: Sat Sep 11, 2010 3:49 pm

Long section names extend into margins of Table of Contents

Postby dadrivr » Sat Jul 30, 2016 5:54 pm

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).
Last edited by dadrivr on Sat Jul 30, 2016 9:35 pm, edited 1 time in total.

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3551
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Jul 30, 2016 6:50 pm

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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 8457
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Jul 30, 2016 8:27 pm

dadrivr wrote:I tried the solution (adding /- in the section name to help it know where to break), but it didn't work.


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.

Stefan
Site admin

dadrivr
Posts: 8
Joined: Sat Sep 11, 2010 3:49 pm

Postby dadrivr » Sat Jul 30, 2016 9:37 pm

Stefan_K wrote:
dadrivr wrote:I tried the solution (adding /- in the section name to help it know where to break), but it didn't work.


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.

Stefan


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.

dadrivr
Posts: 8
Joined: Sat Sep 11, 2010 3:49 pm

Postby dadrivr » Sat Jul 30, 2016 9:54 pm

Nevermind, I tried placing the break in a different part of the word and it worked. Thanks!


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest