# Reduce spacing between chapter and head of page [duplicate]

I'm a bit frustrated because I am writing my thesis in latex and I used the graduate-thesis template from sharelatex.

I just want to reduce the spacing before a new Chapter that is generated between the top of the space and the "Chapter x" with the \chapter{"example chapter"} command.

How can I do that?

## marked as duplicate by Johannes_B, Mico spacing StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Jun 30 '18 at 6:18

Since this class is based on the book class, one can take a look at that. Then you will realize that \chapter uses \@makechapterhead which is responsible for this spacing. You can change the original code (from book.cls) accordingly in the preamble:

\makeatletter
\vspace*{0\p@}% This is generating the additional space. default {50\p@}
{\parindent \z@ \raggedright \normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\makeatother


A word of caution: This is a well established standard. I wouldn't suggest to do big changes to that. But in the end it's up to you—your gusto and decision.