例如,如何引用表号以得到表7 ?
样本数据
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}
我得到
Table 2.5 lorem lorem ipsun.
其中2.5是章节号。
例如,如何引用表号以得到表7 ?
样本数据
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}
我得到
Table 2.5 lorem lorem ipsun.
其中2.5是章节号。
你必须把标签放在标题之后,以便标签存储表的编号,而不是章节的编号。
\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 ...