I have a latex document with a table that contains two subtables. When I reference the entire table it the numbering starts at 1, but when I reference one of the individual subtables the numbering starts with 0. Here is an example of my setup:
% In my preamble
\usepackage[tight,footnotesize]{subfigure}
% In my document section
\section{Section}
\subsection{Sub Section}
% My Table
\begin{table}[ht]
\centering
\subtable[Sub Table 1]
{
\label{tbl:sub-table-1}
\centering
\begin{tabular}{ l c }
\textbf{A} & \textbf{B} \\
1 & 2 \\
2 & 3 \\
\end{tabular}
}
\subtable[Sub Table 2]
{
\label{tbl:sub-table-2}
\centering
\begin{tabular}{ l c }
\textbf{A} & \textbf{B} \\
1 & 2 \\
2 & 3 \\
\end{tabular}
}
\caption{Sub Tables}
\label{tbl:table-1}
\end{table}
This it my sub table \ref{tbl:sub-table-1}. % Comes out 0(a) instead of 1(a)
This is my table \ref{tbl:table-1}. % Comes out to 1 as you expect
\captionbefore the\subtables and look if it changes the numbering. – Martin Scharrer♦ May 8 '11 at 22:23