11

Be default chapters look like:

Chapter 1

Chapter name.

How can I make chapters in LaTeX look something like this?

Chapter 1. Chapter Name.

That is: add a dot after chapter number, and place the chapter name straight after the chapter number.

migrated from stackoverflow.com Dec 14 '11 at 1:49

This question came from our site for professional and enthusiast programmers.

11

You can use the titlesec package:

\documentclass{book}
\usepackage{titlesec}

\titleformat{\chapter}
  {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter.}{20pt}{\huge}

\begin{document}

\chapter{Test Chapter}

\end{document}

enter image description here

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.