![如何设置长表的标题跳过](https://linux22.com/image/396020/%E5%A6%82%E4%BD%95%E8%AE%BE%E7%BD%AE%E9%95%BF%E8%A1%A8%E7%9A%84%E6%A0%87%E9%A2%98%E8%B7%B3%E8%BF%87.png)
我试过了,\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}