Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

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}


share|improve this question

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

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.

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

1 Answer 1

up vote 3 down vote accepted

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


to your document preamble.

share|improve this answer

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