Take the 2-minute tour ×
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.

I'm using the following to center align chapters. Heres the code

 \newcommand{\cchapter}[1]{\chapter[#1]{\centering #1}}

And using \cchapter to format chapters. But the chapter heading for eg. "Chapter 1" is not getting center aligned. How can I achieve that?

share|improve this question
add comment

1 Answer 1

up vote 9 down vote accepted

I recommend to use the titlesec package. Here's an example:

\usepackage{titlesec}
\titleformat{\chapter}[display]
  {\normalfont\huge\bfseries\centering}
  {\chaptertitlename\ \thechapter}{20pt}{\Huge}

This is similar to the standard chapter plus \centering.

I prefer sans serif headings, because I think bold headings with serifs are too heavy. Hoewver, serifs are great for body text. Recently I used this:

\usepackage{titlesec}
\titleformat{\chapter}[display]
  {\normalfont\sffamily\Large\bfseries\centering}
  {\chaptertitlename\ \thechapter}{0pt}{\Huge}
\titleformat{\section}
  {\normalfont\sffamily\large\bfseries\centering}
  {\thesection}{1em}{}
\titlespacing*{\chapter}{0pt}{30pt}{20pt}

To get:

enter image description here

Also because of the lighter appearance of those bold headings, KOMA-Script classes use sans-serif headings by default.

share|improve this answer
    
That was perfect. Thanks. Unfortunately I can't upvote yet –  tsudot Mar 15 '11 at 11:49
add comment

Your Answer

 
discard

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.