表とキャプションの間の隙間* 表の内側

表とキャプションの間の隙間* 表の内側

パネル A と B のtabular1 つに2 つの を挿入しています。 には1 つの があり、それぞれにも次のように1 つあります。tabletablecaptiontabularcaption*

\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そして、1 番目と 2 番目のギャップcaption*が狭すぎることがわかりました。他の 3 つのギャップ ( caption- caption*caption*- tabularcaption*- 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}

ここに画像の説明を入力してください

関連情報