[Tex/LaTex] Numbering sections, subsection, subsubsections

countersnumberingsectioning

I'm using the class book and for each chapter, section, subsection, etc. the numbering starts this way:

Chapter 1

Section 1.1

Section 1.2

Section 1.3 . . .

I would like to have instead something like this:

Chapter 1

Section 1.0

Section 1.1

Section 1.2

Any suggestions? Thanks a lot for your help.

Best Answer

You can redefine \thesection so that it issues the current number minus one.

\documentclass{book}

\makeatletter
\renewcommand{\thesection}{%
  \thechapter.\@arabic{\numexpr\c@section-1}%
}
\makeatother

\begin{document}
\tableofcontents

\chapter{First chapter}

\section{First section}
\section{Second section}
\section{Third section}

\chapter{Second chapter}

\section{First section}
\section{Second section}
\section{Third section}

\end{document}

enter image description here