# Chapter number before Chapter name in LaTeX

I am trying to get this at the page where my Chapter 1 starts. I am using standard book class. How to get 1. before ChapterName.

• And completely remove the line with Chapter 1? Or should it stay and the number be printed two times? May 7 '18 at 14:33
• Chapter 1 should also be there. May 7 '18 at 14:34
• Is this repetition logical, or following some occult reason?
– user9424
May 7 '18 at 17:21

Use command titleformat in package titlesec. For more informations chapter 3 of documentation.

\titleformat{hcommandi}[hshapei]{hformati}{hlabeli}{hsepi}{hbefore-codei}[hafter-codei]


A minimal exemple.

\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter{. }}{0pt}{\Huge\bfseries}

\begin{document}
\chapter{Chapter Name}
test
\end{document}


with Chapter 1 should also be there

\documentclass{book}
\usepackage{titlesec}

\titleformat{\chapter}[display]{\bfseries\Large}{\chaptertitlename \hspace{2ex}\thechapter}{4ex}{\thechapter \hspace{2ex}}[]

\begin{document}
\chapter{Chapter Name}
test
\end{document}


or in Memoir class

\documentclass{memoir}