Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xupeng0701 opened this issue Aug 13, 2024 · 1 comment
Open

Comments

@xupeng0701
Copy link

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
Copy link

GR8DAN commented Aug 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants