
两个子表格并排排列,使用\phantomcaption设置总表格不显示标题.问题是如何让总表格也不参与编号呢?
mwe中的例子显然编号了,因为第二个表的编号显示为2.
\documentclass{article}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{table}
\centering
\subcaptionbox*{sub1}{%
\begin{tabular}{c}\hline
abcdefg \\ \hline
\end{tabular}%
}
\qquad
\subcaptionbox*{sub2}{%
\begin{tabular}{c}\hline
hijklmn \\ \hline
\end{tabular}%
}
\phantomcaption
\end{table}
\begin{table}
\centering
\begin{tabular}{c}\hline
qwertyuiop \\ \hline
\end{tabular}
\caption{text}
\end{table}
\end{document}
--
FROM 115.171.40.*