c****d 发帖数: 116 | 1 When I refer the table with \ref{tab:something}, the number is correct, eg.
table 4. However, when I refer the subtable with \ref{tab:20}, the table
number becomes 5(b). What is wrong? Thanks for your help.
\begin{table}[hbt]
\centering
\caption {
XXXXXX
}
\subtable[X1]
{
\label{tab:10}
\begin{tabular}{lccc}\hline
& AAA & BB & CC \\
& & XXX & XXX \\ \hline
XXX & 5.35 & 5.44 & 5.15 \\ \hline
\end{tabular}
}\\
\subtable[X2]
{
| c****d 发帖数: 116 | 2 斑竹,帮忙看看,谢谢
【在 c****d 的大作中提到】 : When I refer the table with \ref{tab:something}, the number is correct, eg. : table 4. However, when I refer the subtable with \ref{tab:20}, the table : number becomes 5(b). What is wrong? Thanks for your help. : \begin{table}[hbt] : \centering : \caption { : XXXXXX : } : \subtable[X1] : {
| T*******n 发帖数: 493 | 3 Try the following. You need the latest versions of subfig and caption from
ctan.org. Check the documentation subfig.pdf for more details. Don't use
subfigure.sty as it is obsolete and replaced by subfig.sty.
\documentclass{article}
\usepackage{subfig}
\captionsetup[table]{position=top}
\captionsetup[subtable]{position=top}
\begin{document}
See the two parts of Table~\ref{tab:something}, namely Table~\ref{tab:10}
and Table~\ref{tab:something}\subref{tab:20}.
\begin{table}[hbt]
\centering
【在 c****d 的大作中提到】 : 斑竹,帮忙看看,谢谢
| c****d 发帖数: 116 | 4 斑竹,帮忙看看,谢谢
【在 c****d 的大作中提到】 : When I refer the table with \ref{tab:something}, the number is correct, eg. : table 4. However, when I refer the subtable with \ref{tab:20}, the table : number becomes 5(b). What is wrong? Thanks for your help. : \begin{table}[hbt] : \centering : \caption { : XXXXXX : } : \subtable[X1] : {
|
|