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
824 stars 397 forks source link

Anyone know how to shorten the gap in the first page of each chapter #263

Open xupeng0701 opened 1 month ago

xupeng0701 commented 1 month ago

Hi, I am heading to my final final phd thesis submission, and my supervisor said there is a like a double-space in the first page of each chapter, literally after the title of Chapter.

Here is the screenshot of this double-space. double space in the first page of each chapter

GR8DAN commented 1 month ago

This is related to issue #213. The solution is to customise \@makechapterhead. In that solution change the \vskip 40 to something like \vskip 10. I.e., place this code before \begin{document} in thesis.tex:

\makeatletter
\def\@makechapterhead#1{%
  \vspace*{50\p@}
  {\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 10\p@
  }}
\def\@makeschapterhead#1{
  \vspace*{50\p@}
  {\parindent \z@ \raggedright
    \normalfont
    \interlinepenalty\@M
    \Huge \bfseries  #1\par\nobreak
    \vskip 10\p@
  }}
\makeatother