3

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}
4

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}}

to your document preamble.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.