Graphics, Figures & TablesContinuous Figure Numbering

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sdelandtsheer
Posts: 14
Joined: Tue Aug 07, 2012 2:50 pm

Continuous Figure Numbering

Post by sdelandtsheer »

Hi, I have a question for which my web search was unsuccessful but I think it is straightforward for he who knows the answer.

I need to change the numbering of figures and tables so that they are incremental. My figures should be named Figure 1, Figure 2, Figure 3, Figure 4 and not as LaTeX does Figure 1.1, Figure 1.2, Figure 2.1, Figure 2.2. Following solutions are conceivable:
  1. mess with the counters at the beginning of each figure and table. Not practical!
  2. rename everything by hand with custom caption, and losing the pretty ToC feature. Possibly making a mess.
  3. Is there a package out there or a simple command I ignore?
I am using the "Thesis" class that itself uses the "Book" class. I know it is obsolete but I am used to it know. No time to switch to "memoir".

Thanks in advance

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Continuous Figure Numbering

Post by localghost »

sdelandtsheer wrote:[…] Is there a package out there or a simple command I ignore? […]
The chngcntr package is your friend. See also "Similar Topics" on the bottom of this page (only when logged in).

Since you didn't provide a MWE you seem not be interested in a complete solution. So this advice will suffice.


Thorsten
sdelandtsheer
Posts: 14
Joined: Tue Aug 07, 2012 2:50 pm

Continuous Figure Numbering

Post by sdelandtsheer »

Works perfect! Here is what I've included in the preamble:

Code: Select all

\usepackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
However, my list of abbreviations has a table-like format, so my first table was numbered Table 2. So I've reset the counter just after:

Code: Select all

\setcounter{table}{0}
And now it is just... beautiful!!!

Thanks a lot!
Post Reply