Graphics, Figures & TablesFigure/Table Sequential Numbering

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
teddybouch
Posts: 6
Joined: Mon Oct 06, 2008 12:57 am

Figure/Table Sequential Numbering

Post by teddybouch »

To meet my school's thesis format requirements, I need to have my figures and tables numbered sequentially throughout the whole thesis rather than sequentially per chapter (i.e. 1.1, 1.2, 2.1, 2.2). I am having trouble figuring out how to do this right now, though. What I have been able to figure out how to do is get rid of the period and the second number. Here's the code I added right after all my \usepackage statements:

Code: Select all

\renewcommand{\thefigure}{\arabic{figure}}
However, whatever counter it is using is still resetting at the beginning of each chapter, and in the list of figures there is an extra hard return after each chapter worth of figures. Can anyone inform me as to how to override this counter? I've tried a bunch of code I found online to no avail. Thanks!

Recommended reading 2024:

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

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

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

Figure/Table Sequential Numbering

Post by localghost »

Take a look at the caption package. The manual will show you how to get a continuous numbering throughout the chapters.


Best regards
Thorsten¹
teddybouch
Posts: 6
Joined: Mon Oct 06, 2008 12:57 am

Figure/Table Sequential Numbering

Post by teddybouch »

Wow! Thanks for such a fast response. For anyone looking at this later, the caption package is exactly the place to go, and the command I was looking for are:

Code: Select all

\captionsetup{%
  figurewithin=none,
  tablewithin=none
}
The within option determines the level of the counter that gets used to count the figures or tables. Other options are section, chapter, etc.
Post Reply