Graphics, Figures & TablesTable Numbering

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gddc33
Posts: 2
Joined: Sat Aug 20, 2011 8:20 pm

Table Numbering

Post by gddc33 »

In my table, I create a label and the table is captioned "Table 1". When I \ref it in the text, it comes out as 1.1.1 or whatever the section numbering is. This is further made problematic by the fact that if I have two tables in the same subsubsection, they are given the same number. It doesn't seem to do this with graphics or equations, just tables.

Example for a table in section 4.3.1

Code: Select all

\begin{table}[h]
\singlespacing
\label{simtable}
\centering
\begin{tabular}{|cc|ccc|c|}
(table goes here)
\end{tabular}
\caption{caption}
\end{table}

The results of this analysis are presented in \textbf{Table \ref{simtable}}
Would come out as

(table)
Table 1: caption

The results of this analysis are presented in Table 4.3.1

I want it to say "... are presented in Table 1."

Thanks!
Last edited by gddc33 on Sat Aug 20, 2011 8:51 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table Numbering

Post by localghost »

The \label command has always to be placed after the \caption command.


Best regards and welcome to the board
Thorsten
gddc33
Posts: 2
Joined: Sat Aug 20, 2011 8:20 pm

Re: Table Numbering

Post by gddc33 »

Oh, so simple! Many thanks!
Post Reply