Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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[utf8x]{inputenc}
\usepackage{linguex}
\usepackage{graphicx}
\usepackage{booktabs} % for fancy tables
\usepackage{amsmath,amsfonts,amsthm,amssymb} % for llbracket, rrbracket
\usepackage{stmaryrd} % for llbracket, rrbracket
\usepackage{qtree}
\usepackage{multirow}
\usepackage{tree-dvips}
\usepackage{fancyhdr,lastpage}

Update:

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:

\usepackage{chngcntr}
\counterwithout{table}{section}
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.

1  
1  
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
2  
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

1 Answer 1

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.