有时在引用latex表格时会出现引用标号不对的问题,如:
\begin{table}[!ht]
\label{tab:table2}
\caption{表格示例2}
\centering
\begin{tabular}{ Ic|c|c|cI}
\whline 一列& 两列& 三列& 四列 \\\hline
1 & 2 &3 &4 \\\hline 2 & 3 &4 &5 \\\hline3 & 4 &5 &6 \\
\whline
\end{tabular}
\end{table}
这时如果在正文中引用表6.2的话,会是:
这里引用表六
而不是:
这里引用表6.2
出现这个问题是因为代码中\label放在\caption之前的缘故,latex中定位其实是靠caption的,所以两者交换一下位置即可解决该问题。