我试过了,\belowcaptionskip
但是\abovecaptionskip
没有效果。
以下是 MWE:
\documentclass{article}
\usepackage{longtable,booktabs}
\setlength\abovecaptionskip{10pt}
\setlength\belowcaptionskip{30pt}
\title{test}
\begin{document}
This is a test table.
\begin{longtable}[]{@{}cl@{}}
\caption{test table}\tabularnewline
\toprule
col1 & col2\tabularnewline
\midrule
\endhead
1 & 2\tabularnewline
\bottomrule
\end{longtable}
End of the document.
\end{document}
答案1
使用该caption
包,其工作原理如下:
\usepackage{caption}
\captionsetup[longtable]{skip=30pt}