2

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.

1

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:

\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@% <--- Chapter title & Chapter text
    \fi
    \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@% <------- Chapter text and first paragraph
  }}

\def\@makeschapterhead#1{%
  \vspace*{50\p@}%
  {\parindent \z@ \raggedright
    \normalfont
    \interlinepenalty\@M
    \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

\documentclass{report}
\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox
\makeatletter
% \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*
\makeatother
\begin{document}
\chapter{A chapter} Some text
\chapter*{Another chapter} Some text
\end{document}
  • 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.