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

I am using the scrbook class and I would like to achieve the following effect for my chapter headings:

 #####      Name of chapter

How would I do this best? Is it possible to do this by simply changing the preamble?

share|improve this question
I would recommend the tag headings here. – Bran the Blessed Aug 22 '10 at 12:31
Done. Do you specifically want small numbers inside the big number, or just shading? – Caramdir Aug 22 '10 at 12:42
@Caramdir: No, this was only supposed to be ASCII-art. A big number would be sufficient. I am changing this... – Bran the Blessed Aug 22 '10 at 13:33
up vote 14 down vote accepted

Three packages have been already mentioned. Since KOMA-Script classes provide a lot of sophisticated features, I usually aim not to lose them. Though packages usually work fine also with KOMA classes, they might remove class features by redefining class commands. For instance, quotchap doesn't care about periods after chapter numbers, supported by KOMA options like numbers=enddot or the autoenddot mechanism.

So, my first question would be: how can I solve the problem using class features? Usually there's a good chance. In this case, I could redefine the macro \chapterformat which is responsible for printing the chapter number.

Code example:

\chapter{Name of chapter}


alt text

This way not only periods but also user defined chapter or sectioning fonts are still supported like done by


Choosing the right way:

To sum up, I believe generally the right way would be

  1. Figure out if it may be done using class features by consulting the documentation.

  2. If not, look out for packages, for instance in the titles and sectioning category of the TeX Catalogue Online.

  3. If neither a class feature nor a package could solve it, then consider to program it yourself. Check out the corresponding macros within the class source file, take them as a starting point, be careful to preserve their other features you don't wish to change.

share|improve this answer
+1 Thank you, this is exactly what I was looking for. Furthermore, your comments are very helpful. – Bran the Blessed Aug 23 '10 at 7:22
I think Gray should be gray. – Jost Jul 8 '15 at 12:47

That looks like a job for the fncychap or titlesec packages.

share|improve this answer
+1 This is also quite interesting, thanks. – Bran the Blessed Aug 23 '10 at 7:23

...or the quotchap package.

share|improve this answer
+1 I like this one, as well. – Bran the Blessed Aug 23 '10 at 7:23

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.