LaTex 中的 Longtable:/caption*{} 和表格之间的间距

LaTex 中的 Longtable:/caption*{} 和表格之间的间距

我使用 在 LaTeX 中向我的长表插入了一个注释\caption*{tablenote}。这很好用,但我想知道如何减少注释和表格之间的间距,类似\vspace*{-1cm}或类似?

我的代码:

\documentclass[12pt,abstract=true,a4paper,toc=bib]{scrartcl}
\usepackage{booktabs} 
\usepackage{longtable}

\begin{document}
{\footnotesize
\begin{longtable}{l c c c c c}
\caption{... \label{descstat1}}\\
\toprule\multicolumn{1}{c}{\textbf{Variable}}
 &\textbf{Mean}
 & \textbf{Std. Dev.}& \textbf{Min.} &  \textbf{Max.} & \textbf{N} \\ 
\endfirsthead
\multicolumn{6}{l}{Table \thetable, continued}
\midrule
\endhead
\midrule
\multicolumn{6}{r}{Continued on following page...}\\
\endfoot
\endlastfoot
\textit{Dependent variables} &&&&&\\
1 & a & b & c & d & e\\
...
\caption*{\footnotesize ...}
\end{longtable}}
\end{document}

答案1

您可以使用可选参数从中添加负跳过\addlinespacebooktabs或者您可以使用为sThreePartTablex定义环境的包。TableNoteslongtable

以下是两种方法的说明:

\documentclass[12pt,abstract=true,a4paper,toc=bib]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{longtable, caption, threeparttablex}

\begin{document}
  {\footnotesize
\begin{longtable}{l c c c c c}
\caption{... \label{descstat1}}\\
\addlinespace
\toprule\multicolumn{1}{c}{\textbf{Variable}}
 &\textbf{Mean}
 & \textbf{Std. Dev.}& \textbf{Min.} & \textbf{Max.} & \textbf{N} \\
\endfirsthead
\multicolumn{6}{l}{Table \thetable, continued}\\
\midrule
\endhead
\midrule
\multicolumn{6}{r}{Continued on following page...}\\
\endfoot
\bottomrule
\addlinespace[-1.5ex]
\caption*{\footnotesize ...}
\endlastfoot
\textit{Dependent variables} &&&&&\\
1 & a & b & c & d & e\\
...
\end{longtable}}


  \begin{ThreePartTable}
  \footnotesize
    \begin{TableNotes}
    \item[]\hspace*{-1.2em} ………
    \end{TableNotes}
\begin{longtable}{l c c c c c}
\caption{... \label{descstat2}}\\
\addlinespace\toprule%\
\multicolumn{1}{c}{\textbf{Variable}}
 &\textbf{Mean}
 & \textbf{Std. Dev.}& \textbf{Min.} & \textbf{Max.} & \textbf{N} \\
\endfirsthead
\multicolumn{6}{l}{Table \thetable, continued}\\
\midrule
\endhead
\midrule
\multicolumn{6}{r}{Continued on following page...}\\
\endfoot
\bottomrule
\insertTableNotes
\endlastfoot
\textit{Dependent variables} &&&&&\\
1 & a & b & c & d & e\\
...
\end{longtable}
  \end{ThreePartTable}


\end{document}

在此处输入图片描述

相关内容