Math & ScienceSequential Numbering of Equations

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
teddybouch
Posts: 6
Joined: Mon Oct 06, 2008 12:57 am

Sequential Numbering of Equations

Post by teddybouch »

I am trying to finish up my thesis, and the format that my school requires specifies that equations should be numbered sequentially through the whole document rather than by chapter. The problem is that the style file I have does it by chapter. I had this same problem with figures and table and solved it by adding this to my preamble:

Code: Select all

\usepackage{caption}
\captionsetup{figurewithin=none}
\captionsetup{tablewithin=none}
However, it doesn't look like the caption package can do the same for equations. Can anyone tell me how to override this? Thanks very much.

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Sequential Numbering of Equations

Post by gmedina »

Hi,

you can use the chngcntr package. Add something like this in the preamble of your document:

Code: Select all

\usepackage{chngcntr}
\counterwithout{equation}{chapter}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
teddybouch
Posts: 6
Joined: Mon Oct 06, 2008 12:57 am

Re: Sequential Numbering of Equations

Post by teddybouch »

Sorry it took me so long to reply - I thought that I had subscribed to this thread, but I clearly did not. I'm having trouble installing the chngcntr package. It doesn't appear to be in the repository, and though I downloaded chngcntr.sty from Cambridge via the link in the last post, I can't figure out a way to install it. Can anyone perhaps shed some light on manual installation?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Sequential Numbering of Equations

Post by gmedina »

Manual installation depends on the OS and on the LaTeX distribution that you use. An example, assuming a TeX Live distribution on a Linux system:

place the chngcntr.sty file in a directory like the following

Code: Select all

.../texmf-texlive/tex/latex/ltxmisc/
and then in a terminal run

Code: Select all

texhash
On a Windows machine with MiKTeX, the file should be placed in the similar corresponding directory and then you should refresh the File Name Data Base
1,1,2,3,5,8,13,21,34,55,89,144,233,...
teddybouch
Posts: 6
Joined: Mon Oct 06, 2008 12:57 am

Re: Sequential Numbering of Equations

Post by teddybouch »

Thanks very much! The install worked after I refreshed the file name database and the package fixed the numbering on my equations.
Post Reply