I have created 2 tables in my LaTeX document:
\begin{table}[hb]
\centering
\begin{tabular}{|c|c|r|}
\hline
... not important...
\end{tabular}
\label{tab:2}
\caption{Določanje prioritet mojstrov znotraj registra AHB0\_EXTPRIO \cite[str.~507]{lpc3141datasheet}.}
\end{table}
and
\begin{landscape}
\begin{table}[ht]
\tiny{
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
...not important...
\end{tabular}
}
\label{tab:1}
\caption{Tabela kriterijev.}
\end{table}
\end{landscape}
When I reference to this 2 tables like this:
\ref{tab:1}
\ref{tab:2}
I get different numbers in text and in caption.
- table 1: caption nr. 3.1 , nr. in text 3.1.2 (this table is located in subsection 3.1.2)
- table 2: caption nr. 3.2 , nr. in text 3.1.3 (this table is located in subsection 3.1.3)
It looks like my tables get their subsection numbers which don't match the caption numbers. Why is this? How can I solve this?