GeneralEquation numbering scheme problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
nderby
Posts: 3
Joined: Thu Jan 31, 2008 2:57 am

Equation numbering scheme problem

Post by nderby »

Hello LaTeX Community!

I am trying to set up an equation numbering system such that on page N, the equations are numbered Na, Nb, Nc, etc. Using the perpage package, this can be done simply:

\MakePerPage{equation}
\renewcommand{\theequation}{\thepage\alph{equation}}

But here's the problem: If page N only has one equation, I want that equation to be numbered N (rather than Na). Any idea how I can do this?

One idea I have is to name it N by default - but if there is more than one equation on the same page, go back and renumber that first equation as Na and then continue as above. This could be done by doing something with the AUX file. But I know very little about that. Any ideas?

Thanks so much!

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

Post Reply