Text FormattingWrong Section Numbering

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
husseina
Posts: 1
Joined: Wed Jun 13, 2012 3:49 pm

Wrong Section Numbering

Post by husseina »

Hello,

This is my code:

Code: Select all

\begin{document}
\maketitle

\section{Abstract}
A short paragraph about what I am doing.
\section{Introduction}
Here I will write all of my background information, and explain the methods of analysis.
\section{Methods}
So, all of the lab stuff, may consider doing experimental and numerical?
\section{Results}
Talk about what I found, what I look for.
\section{Discussion}
Meaning of what I found, and where it will go.

\end{document}

But for some reason my numbering is going as 0.1, 0.2, 0.3, 0.4, etc instead of 1, 2, 3, 4 as I would like it. Any advice is greatly appreciated (ignore the lame descriptions for each chapter ;) )
Last edited by localghost on Wed Jun 13, 2012 4:58 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Wrong Section Numbering

Post by localghost »

Unfortunately important information is missing in your description. That concerns first of all the document class you are using. But from your problem description it can be assumed that you use a class that supports chapters but start your document with using sections. Either use chapters or migrate your document to the »article« class.
husseina wrote:[…] (ignore the lame descriptions for each chapter) […]
Sections are no chapters.


Best regards and welcome to the board
Thorsten
widear
Posts: 5
Joined: Tue Jun 26, 2012 2:01 am

Re: Wrong Section Numbering

Post by widear »

There should be no problem with this as they are operating on a very specific and clear cut set of values and probably, the thing that you might want to take a look at is how the tags are being paired up. Most probably, the problem lies with one of your sections being placed on a different tag which causes them to be labeled improperly.

Just check on it to be sure about it
Post Reply