[Tex/LaTex] Remove “Chapter” from a book text

chapters

I am finishing my master thesis and I need to remove the "Chapter" name from my chapter without removing the relative number of the chapter. (I am using the book class)

What I have now is:

Chapter 1.
Name of the chapter.

What I need is:

  1. Name of the chapter.

I tried with titlesec, but the code I had changed the font as well.

Best Answer

Here's how you can do with titlesec (you may be wanting to add some \titlespacing instructions).

\documentclass{book}
\usepackage{titlesec}

\titleformat{\chapter}[display]
  {\Huge\bfseries}
  {}
  {0pt}
  {\thechapter.\ }

\titleformat{name=\chapter,numberless}[display]
  {\Huge\bfseries}
  {}
  {0pt}
  {}

\begin{document}

\frontmatter

\tableofcontents

\chapter{Abstract}

abc

\mainmatter

\chapter{Title}

abc

\end{document}

Technical note: the image has been produced with the oneside option in order to limit the number of pages

enter image description here