指的是用乳胶制成的桌子。

时间:2021-06-07 15:00:09

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

您如何引用一个表编号,例如,您可以得到表7 ?

Sample data

样本数据

Table \ref{table:questions} lorem lorem ipsun.

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

I get

我得到

Table 2.5 lorem lorem ipsun.

where 2.5 is the chapter number.

其中2.5是章节号。

1 个解决方案

#1


275  

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 ...

#1


275  

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 ...