kks32 / phd-thesis-template

A LaTeX / XeLaTeX / LuaLaTeX PhD thesis template for Cambridge University Engineering Department (CUED)
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
MIT License
833 stars 400 forks source link

How to reduce the whitespace above the Chapter title text? #213

Closed noisyoscillator closed 3 years ago

noisyoscillator commented 4 years ago

Would really appreciate if somebody can tell me the trick to reduce the whitespace above the Chapter title text. ss !

GR8DAN commented 4 years ago

You code try the code to redefine \@makechapterhead in the first answer to How to decrease spacing before chapter title?

Basically add:

\makeatletter
\def\@makechapterhead#1{%
  %%%%\vspace*{50\p@}% %%% removed!
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries \@chapapp\space \thechapter
        \par\nobreak
        \vskip 20\p@
    \fi
    \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@
  }}
\def\@makeschapterhead#1{%
  %%%%%\vspace*{50\p@}% %%% removed!
  {\parindent \z@ \raggedright
    \normalfont
    \interlinepenalty\@M
    \Huge \bfseries  #1\par\nobreak
    \vskip 40\p@
  }}
\makeatother

Before \begin{document}, here is the before and after from adding the code above:

latex-reduce-chapter-margin