Possible Duplicate:
Continuous v. per-chapter/section numbering of figures, tables, and other document elements

My table references are showing up with the section number in them. I'd like all tables in the article to be numbered sequentially with out regard to section.

Here's my header. Thanks!

\usepackage{booktabs} % for fancy tables
\usepackage{amsmath,amsfonts,amsthm,amssymb} % for llbracket, rrbracket
\usepackage{stmaryrd} % for llbracket, rrbracket


I'm already in article class. The tables themselves show up numbered simply and correctly, e.g. Table 3. References to the tables, though, seem to actually give only the section name the tables are in. E.g. a table from section 3.1 shows up as "3.1" when I use \ref{tablename}.

Tried this, no effect:


Always put \label after \caption inside your table, otherwise you may receive unwanted references. The reason for this is that \label captures the most recently updated and counter (set using \refstepcounter). This only occurs after a call to \caption.

| improve this answer | |
  • 1
    Highly underrated answer. – idnavid Dec 19 '19 at 4:59

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