我使用 在 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
您可以使用可选参数从中添加负跳过\addlinespace
,booktabs
或者您可以使用为sThreePartTablex
定义环境的包。TableNotes
longtable
以下是两种方法的说明:
\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}