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?

  • 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. – jub0bs Mar 8 '13 at 17:49

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

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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