GeneralStart 0 when using \section

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bowie
Posts: 6
Joined: Sun Apr 01, 2007 6:38 am

Start 0 when using \section

Post by bowie »

Hello,

can somebody please tell me how to get rid of the leading zeros when using \section ?

My sections look like that:

0.1 Intro
0.2 Bla
0.2.1 bla bla
0.3 bla

and so on

I just want:

1 Intro
2 Bla
2.1 bla bla
3 bla

Can't be that difficult ?

Regs Marcus

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Start 0 when using \section

Post by localghost »

I assume you are using one of the documentclasses book or report (or the equivalent classes from KOMA Script). Use the documentclass article instead. It does not support chapters and your sections will be numbered as wanted.

Code: Select all

Code, edit and compile here:
\documentclass[12pt,a4paper]{article}
\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
evanesco
Posts: 6
Joined: Wed Mar 14, 2007 11:52 pm

Start 0 when using \section

Post by evanesco »

bowie wrote: Hello,

can somebody please tell me how to get rid of the leading zeros when using \section ?

My sections look like that:

0.1 Intro
0.2 Bla
0.2.1 bla bla
0.3 bla

and so on

I just want:

1 Intro,
2 Bla
2.1 bla bla
3 bla

Can't be that difficult ?

Regs Marcus


Before the "section"s, you should use "chapter"s, shouldn't you? Please correct me whether I'm wrong.
bowie
Posts: 6
Joined: Sun Apr 01, 2007 6:38 am

Re: Start 0 when using \section

Post by bowie »

Thank you !

I will use article !

Yes, I should use chapter.

Regs

Marcus
Post Reply