Graphics, Figures & TablesEquation and figure numbering wrong

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
alman9898
Posts: 2
Joined: Mon Apr 12, 2010 8:02 pm

Equation and figure numbering wrong

Post by alman9898 »

I don't know how I can include a code sample for this problem...I have no idea why it is happening.

Basically, my document is split into subdocuments, one of which is Appendix C.

For some reason, ALL the equation and figure numbers are WRONG. Figure C.1, for example, is C.24. Equation C.1 appears as C.6. I searched through my other subdocuments to see if any other equations/figures had taken these labels: they didn't. Furthermore, when I compile my appendix C document SEPARATELY all is well. What's wrong?
Attachments
right_numbers.PNG
right_numbers.PNG (96.2 KiB) Viewed 3290 times
wrong_numbers.PNG
wrong_numbers.PNG (98.42 KiB) Viewed 3290 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Equation and figure numbering wrong

Post by frabjous »

Is it continuing the numbering from the previous chapter?

Hard to diagnose without a minimal working example, but you could probably manually reset the counters at the beginning of the appendix, e.g.:

\setcounter{equation}{0}
\setcounter{figure}{0}

and so on.
Post Reply