How we give a vertical gap of 25 mm between the Chapter number (#) and chapter title lines and between chapter title line and the first paragraph.


Building on Space length between the chapter number and the chapter title, the spaces you're after are given in \@makechapterhead for \chapter (and \@makeschapterhead for \chapter*). The following definition(s) are taken from report.cls:

  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries \@chapapp\space \thechapter
        \vskip 20\p@% <--- Chapter title & Chapter text
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@% <------- Chapter text and first paragraph

  {\parindent \z@ \raggedright
    \Huge \bfseries  #1\par\nobreak
    \vskip 40\p@% <------- Chapter text and first paragraph

These values can be patched/altered using etoolbox:

enter image description here

\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
% \patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\patchcmd{\@makechapterhead}{20\p@}{25mm}{}{}% Correct \chapter
\patchcmd{\@makechapterhead}{40\p@}{25mm}{}{}% ... \chapter
\patchcmd{\@makeschapterhead}{40\p@}{25mm}{}{}% ... \chapter*
\chapter{A chapter} Some text
\chapter*{Another chapter} Some text
  • It doesn't effect. Why you are giving it two or three times. It is same for \chapter{} and \chapter*{}. – Deepesh Patel Nov 29 '13 at 18:05
  • 1
    @DeepeshPatel: Each patch changes a single thing. The first does a search-and-replace of 20\p@ to 25mm in \@makechapterhead. The second does a search-and-replace of 40\p@ to 25mm in \@makechapterhead. The third does a search-and-replace of 40\p@ to 25mm in \@makeschapterhead. Two different macros, three different search-and-replaces. Are you perhaps loading some sectioning package like titlesec? Sectioning packages usually redefine these macros I'm trying to update, causing the search-and-replace to not work. – Werner Nov 29 '13 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.