I am writing my master thesis. I just started working on LaTeX. I am writing the first chapter. I used \chapter{Introduction}, but when I make a section using \section{abcd}, the section number is 0.2 even though the chapter number is 1. I want the section numbers to be "chapter number"."Section number" (e.g., 1.1 for the first section of first chapter).

My code:



here goes my text......

\chapter{background}  % corrected typo: \chatper{background}


I want the chapter number to be 1 for the first chapter not 0, and the section number for the first section of first chapter to be 1.1.

closed as too localized by lockstep, Kurt, zeroth, Stefan Kottwitz Oct 16 '12 at 10:47

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    Please edit your question and add a complete example code that reproduces the problem. Without that it will be difficult for anyone to help you. – Ian Thompson Oct 3 '12 at 18:25
  • 4
    Typesetting your example I get "Chapter 1 Introduction" and the section is numbered 1.1; then "Chapter 2 Background" (after correcting the typo). You probably have something else that causes the trouble. Oh! I almost forgot to say "Welcome to TeX.SX!" – egreg Oct 3 '12 at 19:43
  • 3
    Perhaps you have seen the wrong number in the table of contents. The table of contents and the other lists (figures, tables) need two or more LaTeX runs to get synchronized until LaTeX does not generate "rerun" warnings. – Heiko Oberdiek Oct 3 '12 at 19:46
  • 3
    If the first version that is compiled with LaTeX does not have \chapter, then the section is numbered 0.1. Then \chapter is added, but the next LaTeX run still shows section 0.1 in the table of contents, but 1.1 in the text. – Heiko Oberdiek Oct 3 '12 at 19:53
  • 2
    After checking those helpful comments, if the problems still remain, please, are you sure that your report.cls is the original one? Maybe somebody edited it. – Sigur Oct 3 '12 at 23:37

Browse other questions tagged or ask your own question.