Graphics, Figures & TablesDifferent tables are referenced the same

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Sintactica
Posts: 1
Joined: Mon Nov 28, 2016 10:36 pm

Different tables are referenced the same

Post by Sintactica »

I have a problem when referencing the tables in a file. The code I use for the tables is:

Code: Select all

\begin{table}[th] 
\tbl{Jaccard coefficient percentage distribution.} 
{\begin{tabular}{@{}lllllll@{}}\toprule 
 Author & 95\%  &   90\%   &   85\%   &   80\%   &   75\%   &   70\% \\ 
\colrule 
 Dashtbozorg et al. \cite{Dashtbozorg2015} & 23 & 66 & 81 & 87 & 92 & 94 \\ 
Giachetti et al. \cite{Giachetti2014} & 13 & 59 & 82 & 88 & 92 & 94 \\ 
Cheng et al. \cite{Cheng2013} & 8 & 51 & 76 & 86 & 92 & -\\ 
Aquino et al. \cite{Aquino2010} & 7 & 46 & 73 & 84 & 90 & 93 \\ 
Marin et al. \cite{Marin2015} & 12 & 49 & - & 84 & - & 95 \\ 
 Proposed method  & 1 & 22  & 51 &  73 &  85 &  92\\\botrule 
\end{tabular}} 
\label{tabla:MessidorJaccard} 
\end{table} 


\begin{table}[th] 
\tbl{Each column shows the MESSIDOR image percentage with euclidean distance between segmentation centers and OD radius ratio less than or equal to the heading.} 
{\begin{tabular}{@{}p{3cm}p{1.5cm}p{1.5cm}p{1.5cm}@{}}\toprule 
 Author & $\frac{m}{4}$ & $\frac{m}{2}$ & $m$\\ 
\colrule 
 Marin et al. \cite{Marin2015} & 97.75 & 99.5 & 99.75 \\ 
Suero et al. \cite{Suero2013} & 15.75 & 75.67 & 99.25 \\ 
 Proposed method & 92.92 & 98.42 & 99 \\\botrule 
\end{tabular}} 
\label{tabla:MessidorRazonRadio} 
\end{table}
But then I get the same reference to both tables, i.e., the pdf shows the same number for both tables. What am I doing wrong?

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Different tables are referenced the same

Post by Stefan Kottwitz »

Welcome to the forum!

Each table needs a caption. Use the command \caption{Jaccard coefficient percentage distribution.}. It has to come before the \label command, because the caption increases the table counter.

Stefan
LaTeX.org admin
Post Reply