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?
IEEEtran.cls- so how do I use labels and refs with a table that has no caption? – Mark Mikofski Jun 05 '19 at 04:07\centerline{TABLE 1} \vskip5pt \centerline{\normalsize \textsc{Example Caption Here}}b/c I think they were trying to manually force the caption to the top. So following How to force table caption on top? I removed all of that and replaced it with\caption{this is my caption}, and it worked! Thanks for your help :) – Mark Mikofski Jun 06 '19 at 17:15