tags:

views:

100

answers:

2

How can you refer to a table number such that you get Table 7 for instance?

Sample data

Taulu \ref{table:kysymys} lorem lorem ipsun.

\begin{table}
\label{table:kysymys}
\begin{tabular}{| p{5cm} | p{5cm} | p{5cm} |}
  -- cut --
\end{tabular}
\end{table}

I get

Taule 2.5 lorem lorem ipsun.

where 2.5 is the chapter number.

+8  A: 

You must place the label after a caption in order to for label to store the table's number, not the chapter's number.

\begin{table}
\begin{tabular}{| p{5cm} | p{5cm} | p{5cm} |}
  -- cut --
\end{tabular}
\caption{My table}
\label{table:kysymys}
\end{table}

Table \ref{table:kysymys} on page \pageref{table:kysymys} refers to the ...
dreamlax
A: 

Hey! Thanks a lot for this post, i had the same issue and fixed it after reading this answer.

Thanks!

Felipe