TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use a custom float environment that is basically used as a table environment that provides extra formatting. I would like this environment to use the same numbering as the regular table floats. Is there a way to do that? I have already changed the floatname to match Table by using the floatname command. Here is my initialization code:


Regular tables numbering also span over chapters... do you have any ideas?

share|improve this question
up vote 4 down vote accepted

If you're doing this only to get a second table environment with different formatting, why don't you simply define it in terms of the existing table? For example something like

share|improve this answer
Or if the OP must use a new float for whatever reason, another option is to define a wrapper environment newnewtable which in its initialization \setcounter{newtable}{table} before loading newtable, and in its end \setcounter{table}{newtable} after ending newtable. – Willie Wong Oct 13 '10 at 13:54
I kind of need the float functionalities [hbt]... I asked in a previous question how to pass on the [opts] in a new environment and the solution which I got was to use floats... With what you are proposing I would be stuck with the same problem/question... – levesque Oct 13 '10 at 14:39
I see, I've just posted a new answer there. – Juan A. Navarro Oct 13 '10 at 15:18

A hackish solution - possibly with adverse effects - is to increment the table counter after a newtable environment and vice versa.





\chapter{A chapter}

\caption{A table}

\caption{A newtable}

\caption{Another table}

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.