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

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:

share|improve this question

marked as duplicate by Werner, Thorsten, lockstep, Claudio Fiandrino, Joseph Wright Jun 14 '12 at 7:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

The easiest approach would be to use the chngcntr package with \counterwithout{table}{section}. – Werner Jun 14 '12 at 5:41
Thanks Werner! More info now in edited question. – mrjf Jun 14 '12 at 6:54
Always put \label after \caption inside your table. I'm guessing this is not the case in your document, correct? – Werner Jun 14 '12 at 6:57
You are too good. That was it. Would you add that as the answer so I can accept? Many, many thanks. – mrjf Jun 14 '12 at 6:58
up vote 2 down vote accepted

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.

share|improve this answer

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