LaTeX forum ⇒ Text FormattingSet chapter number starting from 0

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

Set chapter number starting from 0

Postby hbaromega » Tue Jun 14, 2011 8:10 pm

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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 9157
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Jun 14, 2011 8:14 pm

Hi,

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

  1. \setcounter{chapter}{-1}
  2. \chapter{Chapter name}


Stefan
Site admin

hbaromega
Posts: 48
Joined: Mon Mar 07, 2011 8:21 pm

Postby hbaromega » Sat Jun 18, 2011 10:15 pm

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: 9206
Joined: Fri Feb 02, 2007 12:06 pm

Postby localghost » Wed Jun 22, 2011 11:21 am

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
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1


Return to “Text Formatting”

Who is online

Users browsing this forum: No registered users and 4 guests