Text FormattingSet chapter number starting from 0

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

Set chapter number starting from 0

Post by hbaromega »

Hi,

I'm writing my Ph.D. dissertation. I wish to start my chapter number from 0 instead of 1. I can manually use

\chapter*{0 Chapter name}

But that doesn't work smart, specially when I may frequently add or remove chapters.

Also I don't get equation or figure number as fraction of chapter number, e.g. if it is 4th equation of chapter 0, it should show the equation number as (0.4), similarly 2nd figure of 3rd chapter will have the label Figure 3.2 .


Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
Stefan Kottwitz
Site Admin
Posts: 10308
Joined: Mon Mar 10, 2008 9:44 pm

Set chapter number starting from 0

Post by Stefan Kottwitz »

Hi,

you could set the chapter counter to -1, so the following chapter would get the number 0:

Code: Select all

\setcounter{chapter}{-1}
\chapter{Chapter name}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Stefan
LaTeX.org admin
hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

Re: Set chapter number starting from 0

Post by hbaromega »

Thanks Stefan_K. It's working fine with all chapters. However, for the first chapter (Chapter 0 in my convention), I wish to have displays for figures and equations like 0.1, 0.2, so on. But I am only getting numbers like 1, 2, so on.

By the way, why didn't I receive any notification after the reply?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Set chapter number starting from 0

Post by localghost »

To increase your chance for help you should give some useful information. This is best done by building a complete but minimal example that shows what you want to do and what is not working.


Thorsten
Post Reply