File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1028
1028
\setlength {\intextsep }{1.80\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip }
1029
1029
% 浮动体位于页面顶部或底部时,调整浮动体与正文之间的距离,后或前加上一行空白
1030
1030
\setlength {\textfloatsep }{1.80\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip }
1031
+ \AtBeginDocument {
1032
+ % longtable 宏包有另外的机制,需专门调整
1033
+ \@ifpackageloaded {longtable}{
1034
+ \setlength {\LTpre }{0.60\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip }
1035
+ \setlength {\LTpost }{1.60\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip }
1036
+ }{}
1037
+ }
1031
1038
}
1032
1039
% \end{macrocode}
1033
1040
%
1580
1587
% 至于表格,虽然其caption位置在上方(而图片是在下方),
1581
1588
% 但 `caption` 宏包已考虑这种区别,统一设置 `belowskip` 即可。
1582
1589
\captionsetup {belowskip=-5pt}
1583
- % 不过 longtable 宏包提供的环境比较奇怪 ,不设置 belowskip 时间距已较小 ,
1590
+ % 不过 longtable 宏包有另外的机制 ,不设置 belowskip 时间距已可较小 ,
1584
1591
% 设置成负数还导致 caption 和表格本体的距离变大。因此我们撤销更改。
1585
1592
\captionsetup [longtable]{belowskip=0pt}
1586
1593
1654
1661
% 调整浮动体与文字之间的距离
1655
1662
\addtolength {\intextsep }{\l _@@_misc_float_separation_tl\baselineskip }
1656
1663
\addtolength {\textfloatsep }{\l _@@_misc_float_separation_tl\baselineskip }
1664
+ % longtable 宏包有另外的机制,需专门调整
1665
+ \@ifpackageloaded {longtable}{
1666
+ \addtolength {\LTpre }{\l _@@_misc_float_separation_tl\baselineskip }
1667
+ \addtolength {\LTpost }{\l _@@_misc_float_separation_tl\baselineskip }
1668
+ }{}
1657
1669
% 调整算法与文字之间的距离
1658
1670
% 针对 algorithm2e 宏包
1659
1671
\@ifpackageloaded {algorithm2e}{
You can’t perform that action at this time.
0 commit comments