Text FormattingStarting the section numbering with 0

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jonnyneill14
Posts: 4
Joined: Mon Feb 22, 2010 7:41 pm

Starting the section numbering with 0

Post by jonnyneill14 »

ive written my essay and put it into sections and all that. i have a first section of preliminary definitions that i would like to call section 0, but my section numbering starts at 1. any idea how i can do this?
thanks :)

Recommended reading 2024:

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

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

Starting the section numbering with 0

Post by localghost »

I see two possible solutions. You can either set the section counter to make your section start from Zero.

Code: Select all

\setcounter{section}{-1}
Add this line right before the section that contains your preliminaries. On the other hand you could put your preliminaries into an unnumbered section.

Code: Select all

\section*{Preliminaries}
\addcontenstline{toc}{section}{Preliminaries}
This would cause the following sections to be numbered from One and place an entry in the ToC.

This solution is for the standrard classes. Other classes like those from KOMA Script or memoir have built-in features.


Best regards and welcome to the board
Thorsten¹
Post Reply