views:

76

answers:

4

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}

Thanks

Mr Morgan

+1  A: 

I can't remember the syntax, but you're essentially looking for counters. Have a look here, under the custom floats section. Assign the counters for both tables and figures to the same thing and it should work.

cristobalito
A: 

I'd just use one type of float (let's say 'figure'), then use the caption package to remove the automatically added "Figure" text from the caption and deal with it by hand.

Joseph Wright
+1  A: 

A quick way to do it is to put \addtocounter{table}{1} after each figure, and \addtocounter{figure}{1} after each table.

It's not pretty, and on a longer document you'd probably want to either include that in your style sheet or template, or go with cristobalito's solution of linking the counters.

Andy
+1  A: 
Norman Gray
Thanks. This does work to an extent. My article has a large number of table and figures and I find the numbering jumps from 14 to 16 and that references to tables and figures in the body text of the article are out of step, e.g. Figure 49 displays... But Figure 49 is actually Figure 11? I am assuming no changes are made to the body text references or to the caption or label text of tables and figures.
Mr Morgan
Excellent; it works very well. Thanks.
Mr Morgan