Graphics, Figures & TablesHow to number floats in LaTeX consistently?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
martinoshea
Posts: 3
Joined: Wed Apr 21, 2010 7:03 pm

How to number floats in LaTeX consistently?

Post by martinoshea »

Hello

I have a LaTeX document where I'd like the numbering of floats (tables and figures) to be in one numeric sequence from 1 to x rather than two sequences according to their type. I'm not using lists of figures or tables either and do nort need to.

My documentclass is report and typically my floats have captions like this:

\caption{Breakdown of visualisations created.}
\label{tab:Visualisation_By_Types}

I think this can be done with a counter or stepcounter.

Can anyone advise?

Thanks

Mr Morgan

Recommended reading 2024:

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

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

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: How to number floats in LaTeX consistently?

Post by josephwright »

You could just use one of either the figure or table environments, and alter the definition of \caption to miss out the "Figure" or "Table" part (using the caption package).
Joseph Wright
Post Reply