在我的论文中,有好几次变量太多,无法在一个表中全部包含。我没有让表格继续放在下一页,而是根据每个表格的特定标准将表格拆分成两个或多个表格。我希望对表格进行编号:表 1A、表 1B、表 1C(对于拆分成三个表格的表格)。那么有没有办法“链接”单独的表格,使标题包含一个共同的数字(1),但包含单独的字母(A、B、C)。也许我能想到的最接近的替代方案是使用“子方程”,当我想链接选定的方程时,它允许我命名子方程 2a、2b、2c 等。
谢谢
答案1
在或包的帮助\subfloat
下:\ContinuedFloat
subfig
subcaption
\documentclass{article}
\usepackage{subfig}
\usepackage{lipsum} % for dummy text
\begin{document}
\lipsum[1-4]
\begin{table}[bp]
\centering
\subfloat[first sub table caption]{
\begin{tabular}{ll}
first column & second column \\
\end{tabular}
}
\subfloat[second subtable caption]{
\begin{tabular}{ll}
first column & second column \\
\end{tabular}
}
\caption{table cpation}
\end{table}
\begin{table}[htp]
\centering
\ContinuedFloat
\subfloat[third subtable caption]{
\begin{tabular}{ll}
first column & second column \\
\end{tabular}
}
\subfloat[fourth subtable caption]{
\begin{tabular}{ll}
first column & second column \\
\end{tabular}
}
\caption{table caption}
\end{table}
\lipsum[1-4]
\end{document}
答案2
这是一个使用该subcaption
包的解决方案。
\documentclass{article}
\usepackage[paperheight=4cm,margin=5mm]{geometry} % just for this example
\usepackage{subcaption} % for 'subtable' env. and '\ContinuedFloat' macro
\captionsetup[subtable]{skip=0.333\baselineskip,font=normalsize}
\renewcommand{\thesubtable}{\thetable\Alph{subtable}}
\makeatletter
\renewcommand{\p@subtable}{} % no prefix in cross-references
\makeatother
\begin{document}
\begin{table}[htbp]
\caption{A table with three sub-tables}
\begin{subtable}{\textwidth}
\caption{The first subtable} \label{tab:1a}
\centering
\begin{tabular}{llllll}
\hline
a & b & c & d & e & f \\
g & h & i & j & k & l \\
\hline
\end{tabular}
\end{subtable}
\end{table}
\clearpage
\begin{table}[htbp]
\ContinuedFloat % <-- very important
%\caption{A table with three sub-tables, continued} % optional
\begin{subtable}{\textwidth}
\caption{The second subtable} \label{tab:1b}
\centering
\begin{tabular}{llllll}
\hline
a & b & c & d & e & f \\
g & h & i & j & k & l \\
\hline
\end{tabular}
\end{subtable}
\end{table}
\clearpage
\begin{table}[htbp]
\ContinuedFloat % <-- very important
%\caption{A table with three sub-tables, continued} % optional
\begin{subtable}{\textwidth}
\caption{The third subtable} \label{tab:1c}
\centering
\begin{tabular}{llllll}
\hline
a & b & c & d & e & f \\
g & h & i & j & k & l \\
\hline
\end{tabular}
\end{subtable}
\end{table}
Cross-references to sub-tables \ref{tab:1a} and \ref{tab:1c}.
\end{document}