TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error

! Package titlesec Error: Not allowed in `easy' settings.

share|improve this question
So you don't want to use titlesec? – Werner Sep 19 '13 at 4:37
@Werner I want my things done. Thats all :D – tex Sep 19 '13 at 4:38
up vote 8 down vote accepted

The error message indicates that you were trying to use the "easy setup" with \titleformat* in a wrong way. For substantial formatting modifications, use the non-starred variant \titleformat and for changing the spacing, use \titlespacing*. Below are the default settings, which you can change according to your needs:


  {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}

For example, to center the title, reduce the space before from 50pt to 30pt and the space after from 40pt to 20pt, you can do:


  {\normalfont\huge\bfseries\filcenter}{\chaptertitlename\ \thechapter}{20pt}{\Huge}

\chapter{Test Chapter}

enter image description here

share|improve this answer
How could I place it at Center? – tex Sep 19 '13 at 4:51
@user3984 please see my updated answer. – Gonzalo Medina Sep 19 '13 at 4:53
Why does the default use pt instead of em. shouldn't ems be used to scale in case of a huge paper sheet? – Mario S. E. Nov 1 '13 at 0:33
@GonzaloMedina Is the first snippet really the default? If I have a chapter followed by a section, I get different vertical spacing with and without that snippet. – LaRiFaRi Jul 15 '15 at 7:42
@LaRiFaRi That's what the titlesec documentation says (page 23). However, you are right. Even with regular text after the title, there's a slight difference in vertical spacing between the default settings and what titlesec states is the configuration thet replicates the standard settings. – Gonzalo Medina Jul 15 '15 at 13:13

The regular (numbered) chapter header in report is set by \@makechapterhead:

  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
        \huge\bfseries \@chapapp\space \thechapter
        \vskip 20\p@
    \Huge \bfseries #1\par\nobreak
    \vskip 40\p@

You see a 50\p@ (or 50pt) vertical gap before setting \@chapapp\space \thechapter in \huge\bfseries; then another 20\p@ gap and the title in \Huge\bfseries, and yet another 40\p@. Starred chapters are set using \@makeschapterhead:

  {\parindent \z@ \raggedright
    \Huge \bfseries  #1\par\nobreak
    \vskip 40\p@

You can change these values to your liking.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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