# Section numbers have a zero in front with report document class [duplicate]

I wrote my tex file first in article mode. Now that I switched the document class to report, unfortunately I am getting a zero before my sections and subsections which I want to be removed. Changing secnumdepth completely removes the number for subsections but as I said I only want that zero to dispersal.

My code is:

\documentclass [11pt,a4paper] {report}
\begin{document}
\setcounter{secnumdepth}{2}

\section{One}

\subsection{one-one}
\end{document}

-

## marked as duplicate by Werner, Guido, Xavier, Kurt, SperavirMay 2 '13 at 3:26

Why did you (have to) switch to report? The only difference would be the availability of \chapters, which it seems you're not interested in. – Werner May 2 '13 at 2:24
This question is ever so close to being a duplicate of TOC - How to remove "zero" preceding section number – what does everybody else think? – doncherry May 2 '13 at 2:32
I didn't know the difference is this little. – Naji May 2 '13 at 2:34
@Naji For more about the standard document classes, see book vs. report vs. article document class. – doncherry May 2 '13 at 2:34

Sectional units have their numbering slated as <chapter>.<section> and defined (within report.cls) as

\renewcommand \thesection {\thechapter.\@arabic\c@section}


If you wish to modify this and remove the <chapter> component, add

\renewcommand{\thesection}{\arabic{section}}