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 need to add both the chapter number and the title in one row with centering: something like "Chapter 2 Title of Chapter".

My code is





\section{ sec1}





What do I need to do?

share|improve this question
Welcome to TeX.SX. A tip: If you indent lines by 4 spaces, then they're marked as a code sample. You can also highlight the code and click the "code" button ({}) or select your code and hit Ctrl+K. – Jubobs Mar 8 '13 at 17:49
up vote 2 down vote accepted

The titlesec package allows you to customise the appearance of titles.

EDIT: I updated my solution based on Gonzalo Medina's comment.



{\chaptertitlename~\thechapter} {0.5em} {}

  \chapter{First chapter}



enter image description here

share|improve this answer
I need to add it as "Chapter 1 FIRST CHAPTER" not like "1 First chapter".( Chapter 1 need to be display) – Emalka Mar 8 '13 at 17:59
It worked ...thank u – Emalka Mar 8 '13 at 18:20

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.