0

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.

enter image description here

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

1 Answer 1

3

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}

enter image description here

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}

enter image description here

or in Memoir class

\documentclass{memoir}
\chapterstyle{crosshead}
\begin{document}

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .