TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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'd like to design a chapter heading similar to the one in the picture below. I like to put a line between the number and the chapter name and also align the the chapter name to the left. I'm using the document class book. Any ideas how to do it?

enter image description here

share|improve this question
By chapter name do you mean the word ‘chapter’ or the chapter title? The picture is aligned on the right. So?… – Bernard Jul 17 '14 at 10:17
up vote 9 down vote accepted

You can build your own chapterstyle with the titlesec package:



\chapter{Enjoy the whitespace}


The type1cm package is required for the font size.

share|improve this answer
type1cm is required if you use computermodern. If you use another font that exists in type1 or opentype format, you don't need it. – Bernard Jul 17 '14 at 10:54
Thanks a lot Bernard! Good one! Two questions: 1) Where in the codes I can play around with the spacing before after the line? 2) How can I add "CHAPTER" before one? With a smaller size ... – LatexQuest Jul 17 '14 at 11:49
To change the spacing before the line you can simply change the value of \vskip0pt\rule... to any other value. If you want to change the space after you have to change the ...}}}{0pt} at the end of the line – SLx64 Jul 17 '14 at 11:54
I have edited my answer for your second question. – SLx64 Jul 17 '14 at 11:57
Thanks a lot! It's perfect! – LatexQuest Jul 17 '14 at 12:14

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.