LaTeX forum ⇒ Theses, Books, Title pagesMoving section titles closer to the top of the page Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Moving section titles closer to the top of the page

Postby templateuser » Sat Mar 28, 2015 4:24 pm

Hi Vel,
I wonder how to adjust the title of sections (Contents, List of tables, Chapter1…) to move them up closer to the top of the page. I looked around thesis.cls file but can not find the clue. Thank you so much

All the best
Nghia

Tags:

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Postby templateuser » Sat Mar 28, 2015 4:24 pm

Hi. I have the same question and already tried several options and none of them worked. One of them I present next and was suggested in this forum but I don't understand what is blocking it from working.

  1. \usepackage[compact]{titlesec}
  2. \titlespacing{\chapter}{0pt}{0pt}{0pt}


waiting for a clue, cheers
RM

User avatar
Vel
Site Moderator
Posts: 451
Joined: Fri Jun 29, 2012 1:20 am
Location: Sydney, Australia
Contact:

Postby Vel » Sat Mar 28, 2015 4:25 pm

Hi,

Just add this in the preamble of main.tex:

  1. \usepackage{etoolbox}
  2. \makeatletter
  3. \patchcmd{\@makechapterhead}{\vspace*{50\p@}}{}{}{}% Removes space above \chapter head
  4. \patchcmd{\@makeschapterhead}{\vspace*{50\p@}}{}{}{}% Removes space above \chapter* head
  5. \makeatother


Adjust the \vspace numbers as you see fit!

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com

ClaudiaS
Posts: 1
Joined: Mon Jun 08, 2015 2:02 pm

Postby ClaudiaS » Tue Jun 09, 2015 12:04 pm

Hey Vel,

thanks for the code, it works fine for me when I add only this code. But as soon as I add the code of another thread to remove the first chapter name, the space is too large again. Maybe because the removing space code refers to the chapter heading that is removed now?! How can I fix it ?

The other code is this one:

\usepackage{titlesec}
\titleformat{\chapter}{}{}{0em}{\bf\LARGE}

greennell
Posts: 10
Joined: Tue Jan 20, 2015 1:57 pm

Postby greennell » Sat Jun 20, 2015 6:14 pm

Hi Vel,

How can I use etoolbox only for particular chapters? I would like to apply it only for appendix.

Thank you,
Nell

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

Postby Johannes_B » Sat Jun 20, 2015 6:24 pm

Put the block beginning and ending with \makeat just before \appendix.
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
Johannes_B
Site Moderator
Posts: 3550
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Jun 11, 2016 9:47 am

With a current version of the template, you can simple do the following:
  1. \renewcommand{\abovechapterskip}{\vspace*{10pt}}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest