General ⇒ Start 0 when using \section
Start 0 when using \section
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Start 0 when using \section
Code: Select all
\documentclass[12pt,a4paper]{article}
\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Start 0 when using \section
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.
Re: Start 0 when using \section
I will use article !
Yes, I should use chapter.
Regs
Marcus