Math & Scienceequation numbering

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

equation numbering

Post by dmuthu_cse »

hello friends,

i am trying to use "equation" environment.. for my equations...

it is working fine, but i am little uncomfortable with equation numbers..

since i am doing 5th chapter, it numbers the equation as
(5.1), (5.2)... so on...

I wanted it be (1),(2)....so on... please help..

regards,
muthu

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

equation numbering

Post by Stefan Kottwitz »

Hi Muthu,

you could use the chngcntr package:

Code: Select all

\usepackage{chngcntr}
\counterwithout{equation}{chapter}
Stefan
LaTeX.org admin
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

Re: equation numbering

Post by dmuthu_cse »

Hello Stefan,

Thanks for your suggestion..

When I tried to use the above code, it says that the chngcntr.sty is not found..

So, i have downloaded from ctan website and copied to my latex directory. But dosent recognize it.

It again says that the "File not found"

I have place the "style" file in
MikeTex -> tex -> latex -> chngcntr -> chngcntr.sty

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

Re: equation numbering

Post by Stefan Kottwitz »

Hi Muthu,

update the package database: click Start/MiKTeX/Options (or Settings) and click the button "Refresh FNDB". Afterwards MiKTeX should be able to find the downloaded package.

Stefan
LaTeX.org admin
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

Re: equation numbering

Post by dmuthu_cse »

Hello stefan,

Thanks, it is working fine after refreshing FNDB..

Again, i have a doubt about equation numbers..

How can i restart the equation numbering from a particular section, by discontinuing the first.

It's like

(1)
(2)
(3)
.
.
.
again (1)
.
.

Please help me in this regard.

With regards,
Muthu
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

equation numbering

Post by Stefan Kottwitz »

If that should be done each section use

Code: Select all

\counterwithin*{equation}{section})
If you want to do it once or just manually use \setcounter

Code: Select all

\setcounter{equation}{0}
Stefan
LaTeX.org admin
dmuthu_cse
Posts: 97
Joined: Fri Sep 04, 2009 4:56 pm

Re: equation numbering

Post by dmuthu_cse »

Thanks stefan..

My problem is solved now..

Regards,
Muthu
Post Reply