File tree 2 files changed +26
-8
lines changed
2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -1236,7 +1236,7 @@ \subsubsection{其他配置}
1236
1236
在 Windows 和 MacOS 中,该字体已经安装;在 Linux 中需要用户自行安装(如果你是 WSL 用户,可参照\ref {sec:word-fonts }直接使用 Windows 下的字体)。
1237
1237
\end {function }
1238
1238
1239
- \begin {function }[added=2023-04-22]{misc/tabularFontSize}
1239
+ \begin {function }[added=2023-04-22, updated=2024-05-13 ]{misc/tabularFontSize}
1240
1240
\begin {bitsyntax }[emph={[1]tabularFontSize}]
1241
1241
tabularFontSize = (*(5)|其他字号*)
1242
1242
\end {bitsyntax }
@@ -1248,6 +1248,8 @@ \subsubsection{其他配置}
1248
1248
如果你需要临时调整表格中的字号,可以使用 |\BITSetup | 命令
1249
1249
在局部范围内覆盖此选项(注意使用大括号)。
1250
1250
1251
+ 此选项影响的“表格”具体包括标准 |tabular|、|tabular*| 环境,以及 |tabularx| 和 |longtable| 宏包提供的环境。
1252
+
1251
1253
\begin {latex }
1252
1254
{
1253
1255
\BITSetup { misc / tabularFontSize = -4}
@@ -1332,7 +1334,7 @@ \subsubsection{其他配置}
1332
1334
1333
1335
\end {function }
1334
1336
1335
- \begin {function }[added=2024-04-30]{misc/tabularRowSeparation}
1337
+ \begin {function }[added=2024-04-30, updated=2024-05-13 ]{misc/tabularRowSeparation}
1336
1338
\begin {bitsyntax }[emph={[1]tabularRowSeparation}]
1337
1339
tabularRowSeparation = (*(1)|\marg {正实数}*)
1338
1340
\end {bitsyntax }
@@ -1343,6 +1345,8 @@ \subsubsection{其他配置}
1343
1345
1344
1346
学校没有明文规定,不过设为1.25更接近本科Word模板实作,设为1.6更接近硕博Word模板实作。
1345
1347
1348
+ 此选项影响的“表格”具体包括标准 |tabular|、|tabular*| 环境,以及 |tabularx| 宏包提供的环境。并不影响 |longtable| 宏包提供的环境,因为宏包已经调节了。
1349
+
1346
1350
\textit {请在导言区使用此选项。 }
1347
1351
1348
1352
\end {function }
Original file line number Diff line number Diff line change 1461
1461
{\hspace {.5em}\titlerule *{.}\contentspage }
1462
1462
% \end{macrocode}
1463
1463
%
1464
+ % \subsubsection{定义样式相关函数}
1465
+ %
1464
1466
% \begin{macro}{\frontmatter}
1465
1467
% 定义前置内容的页面样式。
1466
1468
% \begin{macrocode}
1481
1483
\linespread {1.53}\selectfont
1482
1484
\pagestyle {BIThesis}
1483
1485
1484
- % 表格内容默认使用五号字 。
1486
+ % 调整表格内容字号(默认五号)和各行之间的距离 。
1485
1487
%
1486
1488
% 由于这种方式会影响所有的表格,
1487
1489
% 所以我们尽可能延迟这种影响。
1488
1490
%
1489
1491
% 不过,在目前的代码实现中没有在封面
1490
1492
% 之类的地方使用表格,所以目前即使放在
1491
1493
% preamble 中也不会有影响。
1492
- \AtBeginEnvironment {tabular}{\zihao {\l _@@_misc_tabular_font_size_tl}}
1493
- \AtBeginEnvironment {tabular*}{\zihao {\l _@@_misc_tabular_font_size_tl}}
1494
- \AtBeginEnvironment {tabularx}{\zihao {\l _@@_misc_tabular_font_size_tl}}
1494
+ %
1495
+ % 支持标准tabular、tabular*环境和宏包tabularx、longtable。
1496
+ \clist _map_inline:nn
1497
+ {tabular, tabular*, tabularx, longtable}
1498
+ {
1499
+ \AtBeginEnvironment {##1} {
1500
+ % 字号只想设置表格内容,不想影响caption。
1501
+ % 一般caption在环境之外,自然不受影响;
1502
+ % 而longtable的caption虽在环境内,但caption宏包能正常处理。
1503
+ \zihao {\l _@@_misc_tabular_font_size_tl}
1504
+ % 各行间距只想影响表格,不想影响矩阵,因此也必须在钩子中设置。
1505
+ % 另外,longtable宏包已经调节了空隙,我们就不重复调节了。
1506
+ \str _if_eq:nnF {##1} {longtable} {
1507
+ \cs _set:Npn \arraystretch {\l _@@_misc_tabular_row_separation_tl}
1508
+ }
1509
+ }
1510
+ }
1495
1511
}
1496
1512
% \end{macrocode}
1497
1513
% \end{macro}
1632
1648
% 调整浮动体与文字之间的距离
1633
1649
\addtolength {\intextsep }{\l _@@_misc_float_separation_tl\baselineskip }
1634
1650
\addtolength {\textfloatsep }{\l _@@_misc_float_separation_tl\baselineskip }
1635
- % 调整表格各行之间的距离
1636
- \cs _set:Npn \arraystretch {\l _@@_misc_tabular_row_separation_tl}
1637
1651
}
1638
1652
% \end{macrocode}
1639
1653
% \end{macro}
You can’t perform that action at this time.
0 commit comments