[Tex/LaTex] Format chapter’s heading


I want all my headings to have these characteristics:

  1. 12pt

  2. Center aligned

  3. Bold

  4. Times new roman font

But when I write \chapter{Introduction}, I can only manipulate the name of the chapter, not the text saying Chapter 1. My final result should be (centered):

Chapter 1


Best Answer

Your document class (which we don't know) may provide easy ways to customize sectioning headings. In my example, I use the standard book class and the titlesec package to change the properties of headings.

Notes: Instead of a fixed font size of 12pt, I've use the command \large which will produce a size of 12pt given the default standard size of book (10pt). Should you insist on a fixed size, I've added a \sizetwelvefixed command (to be used instead of \large). You also didn't specify if "normal" text should also by typeset in Times; in my example, Latin Modern is used for normal text and Times only for chapter headings.




% \titleformat{\chapter}[display]% OLD
%     {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}% OLD
% \titlespacing*{\chapter}{0pt}{50pt}{40pt}% OLD
\titleformat{\chapter}[display]% NEW
    {\fontfamily{ptm}\large\bfseries\centering}{\chaptertitlename\ \thechapter}{5pt}{\large}% NEW
\titlespacing*{\chapter}{0pt}{30pt}{20pt}% NEW



Some text.