26

I use report document class and the thing is that I would like to remove Chapter x phrase, add chapter number before chapter title and remove blank place between chapter name and top of page. For example normally it is like:

top of page
blank place
blank place
Chapter 1
Title of chapter
content

It would be better to be like this:

top of page
1. Title of chapter
content

2 Answers 2

24

You can use the titlesec package; a little example:

\documentclass{report}
\usepackage{titlesec}

\titleformat{\chapter}[block]
  {\normalfont\huge\bfseries}{\thechapter.}{1em}{\Huge}
\titlespacing*{\chapter}{0pt}{-19pt}{0pt}

\begin{document}

\chapter{Test chapter}

\end{document}
2
  • @GonezloMedina I want the chapter title to appear in the middle of a separate page. How can I do it. Thanks in advance.
    – Kira
    Commented Oct 19, 2013 at 21:41
  • Is there a way to do this only for non-appendix chapters?
    – xeruf
    Commented Jun 17, 2021 at 11:04
10

The macro that generates the heading of the chapter (and what it looks like eventually) in the default book and report document classes is \@makechapterhead (I've added some comments/descriptors):

\def\@makechapterhead#1{%
  \vspace*{50\p@}% <----------------- Space from top of page to Chapter #
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries \@chapapp\space \thechapter% <-- Chapter #
        \par\nobreak
        \vskip 20\p@% <-------------- Space between Chapter # and title
    \fi
    \interlinepenalty\@M
    \Huge \bfseries #1\par\nobreak% <------------------ Chapter title
    \vskip 40\p@% <------------------ Space between chapter title and first paragraph
  }}

You can update these to your liking to modify the display. For example:

enter image description here

\documentclass{report}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\makeatletter
\def\@makechapterhead#1{%
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries \thechapter.\ % <-- Chapter # (without "Chapter")
    \fi
    \interlinepenalty\@M
    #1\par\nobreak% <------------------ Chapter title
    \vskip 40\p@% <------------------ Space between chapter title and first paragraph
  }}
\makeatother
\begin{document}
\chapter{A chapter}\lipsum[1]
\end{document}

In the above example, the text block boundary was emphasized using showframe.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .