1

This question already has an answer here:

In my thesis, my examiners need the section numbering to start with 0 and not from 1.

The structure is somewhat like

\documentclass[12pt]{report}

\begin{document}
\chapter{First}
\section{first section}

\subsection{subsection}

\end{document}

which gives me result as

Chapter 1

First

1.1 first section

1.1.1 subsection

instead of this I need

Chapter 1

First

1.0 first section

1.0.1 subsection

I tried using

\setcounter{section}{-1}

before

\begin{document}

but no success.

marked as duplicate by Peter Grill, Svend Tveskæg, Guido, Jesse, Speravir Jan 26 '14 at 2:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Jan 25 '14 at 23:35

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

2

Every command \chapter{} resets your counter section behalf of it. Usually everybody wants to start new numbered sections with 1. You have to change it after the chapters title though. I hope that's explaning it detailed enough?

The following MWE will work for you:

\documentclass{report}
\begin{document}
\chapter{First}

\setcounter{section}{-1}
\section{first section}

\subsection{subsection}

\end{document}
  • Adding \setcounter{section}{-1} before the first section in each chapter solved the problem. Thanks strpeter. – Vinit Jan 23 '14 at 9:09