avatar
help on subtable label# TeX - TeX电子排版系统
c*d
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]
{
avatar
c*d
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]
: {

avatar
T*n
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 的大作中提到】
: 斑竹,帮忙看看,谢谢
avatar
c*d
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]
: {

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。