[Tex/LaTex] Formatting chapter headings using the titlesec package

formattingsectioningtitlesec

I'm trying to do a very simple task but I'm a beginner in LaTeX, so I have some doubts.

I'd like to change the chapter style. Instead of

Chapter 1

Introduction

I'd like to have

C H A P T E R 1 (bold, centered, underlined and one single space between the letters)

Introduction.

Can someone help me with this?

Best Answer

I am not sure if something like this is what you want:

\documentclass{book}
\usepackage{titlesec}
\usepackage[tracking=true]{microtype}
\usepackage{lipsum}% juts to generate text for the example

\titleformat{\chapter}[display]
  {\normalfont\huge\bfseries}{\filcenter\underline{\MakeUppercase{\textls[400]{\chaptertitlename}}\ \thechapter}}{20pt}{\Huge}

\begin{document}

\chapter{Introduction}
\lipsum[4]

\end{document}

enter image description here

Notice that underlined bold-faced text might be a bad dasign choice.