我在面板 A 和面板 B中插入两个tabular
s 。有一个,并且每个也有一个 ,如下所示。table
table
caption
tabular
caption*
\documentclass{article}
\usepackage{caption}
\begin{document}
\begin{table}
\centering
\caption{SHORT TITLE}
\caption*{Panel A. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% I ALSO NEED A GAP HERE %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\caption*{Panel B. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{table}
\end{document}
tabular
而且我发现第一个和第二个之间的间隙caption*
太小了。其他三个间隙(caption
- caption*
,caption*
- tabular
,caption*
- tabular
)是可以的。为什么它们的间隙不同?
我也尝试了subtable
如下方法,但紧密的间隙看起来仍然很难看。
\documentclass{article}
\usepackage{caption,subcaption}
\begin{document}
\begin{table}
\centering
\caption{SHORT TITLE}
\begin{subtable}{\textwidth}
\centering
\subcaption{Panel A. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{subtable}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% STILL NO GAP APPLIED %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{subtable}{\textwidth}
\centering
\subcaption{Panel B. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{subtable}
\end{table}
\end{document}
在这里我添加了我的版本(\vspace{10pt}
对于\caption*
和\vspace{6pt}
对于\subcaption*
),但不知道是否最好。
\documentclass{article}
\usepackage{caption}
\begin{document}
\begin{table}
\centering
\caption{SHORT TITLE}
\caption*{Panel A. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}\vspace{10pt}
\caption*{Panel B. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{table}
\end{document}
答案1
也许这个例子会有所帮助。
\documentclass{article}
\RequirePackage{float}
\RequirePackage{caption}
\begin{document}
\centerline{SHORT TITLE}
\begin{table}[H]
\centering
\caption*{Panel A. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{table}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I ALSO NEED A GAP HERE %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}[H]
\centering
\caption*{Panel B. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{table}
\end{document}
或者这个:(您也可以使用\subcaption*{⟨heading⟩}
)
\documentclass{article}
\usepackage{subcaption}
\begin{document}
\begin{table}
\caption{FULL CAPTION}
\begin{subtable}[t]{.5\linewidth}
\centering
\subcaption{ Panel A. LONG DESCRIPTION \\LONG DESCRIPTION }
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{subtable}%
\begin{subtable}[t]{.5\linewidth}
\centering
\subcaption{ Panel B. LONG DESCRIPTION \\ LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{subtable}
\end{table}
\end{document}
更新在注释之后。将所有内容放入表格环境中。
\documentclass{article}
\RequirePackage{float}
\RequirePackage{caption}
\begin{document}
\begin{table}
\caption{SHORT TITLE 1}
\begin{table}[H]
\centering
\caption*{Panel A. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{table}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I ALSO NEED A GAP HERE %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}[H]
\centering
\caption*{Panel B. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{table}
\end{table}
\noindent ANOTHER GAP HERE
\begin{table}[H]
\caption{SHORT TITLE 2}
\begin{table}[H]
\centering
\caption*{Panel C. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{table}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
PLUS ANOTHER GAP HERE %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{table}[H]
\centering
\caption*{Panel D. LONG DESCRIPTION}
\begin{tabular}{*5c} \hline
0 & 0 & 0 & 0 & 0 \\
0 & 0 & 0 & 0 & 0 \\ \hline
\end{tabular}
\end{table}
\end{table}
\end{document}