|
1620 | 1620 | %
|
1621 | 1621 | % 1. 设置相对简单的浮动体内部“图表本体 🡘 caption”距离。
|
1622 | 1622 | %
|
1623 |
| -\setlength{\abovecaptionskip}{11pt} |
1624 | 1623 | \@@_if_bachelor_thesis:TF {
|
| 1624 | + \setlength{\abovecaptionskip}{11pt} |
1625 | 1625 |
|
1626 | 1626 | % 调整表格 caption 和表格本体间的距离。
|
1627 | 1627 | \@@_if_thesis_english:TF {
|
|
1631 | 1631 | \captionsetup[table]{skip=5pt}
|
1632 | 1632 | }
|
1633 | 1633 | } {
|
1634 |
| - \setlength{\belowcaptionskip}{9pt} |
| 1634 | + \captionsetup[table]{skip=8bp} |
1635 | 1635 | }
|
1636 | 1636 | %
|
1637 | 1637 | % 2. 设置比较复杂的图表浮动体与前后正文的间距。
|
|
1669 | 1669 | }{}
|
1670 | 1670 | }
|
1671 | 1671 | } {
|
1672 |
| - % TODO: 研究生模板待调整 |
| 1672 | + % 保留“正文 🡘 图片本体”距离不动,缩小“表格本体 🡘 正文”实际距离,使二者相近 |
| 1673 | + \AtBeginEnvironment{table}{ |
| 1674 | + \setlength{\intextsep}{3bp plus 1pt minus 1pt} |
| 1675 | + } |
| 1676 | + |
| 1677 | + % 调整“正文 🡘 表格 caption”距离 |
| 1678 | + \captionsetup[table]{belowskip = 6bp + 0.25\baselineskip} |
| 1679 | + |
| 1680 | + % 调整“图片 caption 🡘 正文”距离 |
| 1681 | + % 这一距离是 intextsep 与 belowcaptionskip 之和。 |
| 1682 | + % 前者在小四 ctexbook 中默认为`14.0pt plus 4.0pt minus 4.0pt`,我们未改。 |
| 1683 | + % 计算下来,后者应设置为 14.0pt - 6bp 左右。 |
| 1684 | + \captionsetup[figure]{belowskip = -12pt} |
| 1685 | + % 浮动体连续排列时,补偿以上负间距 |
| 1686 | + \addtolength{\floatsep}{12pt} |
| 1687 | + |
| 1688 | + % 适配子图 |
| 1689 | + \captionsetup[subfigure]{aboveskip = 3bp, belowskip = 3bp} |
| 1690 | + |
| 1691 | + \AtBeginDocument { |
| 1692 | + % longtable 宏包有另外的机制,需专门调整 |
| 1693 | + \@ifpackageloaded{longtable}{ |
| 1694 | + \setlength{\LTpre}{-0.8\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} |
| 1695 | + \setlength{\LTpost}{0.1\baselineskip plus 0.2\baselineskip minus 0.2\baselineskip} |
| 1696 | + }{} |
| 1697 | + } |
1673 | 1698 | }
|
1674 | 1699 | % \end{macrocode}
|
1675 | 1700 | %
|
|
0 commit comments