diff --git a/bithesis-doc.tex b/bithesis-doc.tex index 8e3e8e58..b51267dd 100644 --- a/bithesis-doc.tex +++ b/bithesis-doc.tex @@ -1332,6 +1332,21 @@ \subsubsection{其他配置} \end{function} +\begin{function}[added=2024-04-30]{misc/tabularRowSeparation} +\begin{bitsyntax}[emph={[1]tabularRowSeparation}] +tabularRowSeparation = (*(1)|\marg{正实数}*) +\end{bitsyntax} + + \textit{此选项一般不需要用户自行修改。} + + 此选项用于调整表格各行之间的距离,允许小数。默认值为1,相当于不调整。 + + 学校没有明文规定,不过设为1.25更接近本科Word模板实作,设为1.6更接近硕博Word模板实作。 + + \textit{请在导言区使用此选项。} + +\end{function} + \subsubsection{常量名称覆盖} \label{sec:const} diff --git a/bithesis.dtx b/bithesis.dtx index 648500d0..77ee2f77 100644 --- a/bithesis.dtx +++ b/bithesis.dtx @@ -733,9 +733,11 @@ autoref / table .initial:n = {\g_@@_const_autoref_tab_tl}, autoref / equ .tl_set:N = \equationautorefname, autoref / equ .initial:n = {\g_@@_const_autoref_equ_tl}, - % 浮动体与正文之间的距离 + % 浮动体相关的各种间距 floatSeparation .tl_set:N = \l_@@_misc_float_separation_tl, floatSeparation .initial:n = {0}, + tabularRowSeparation .tl_set:N = \l_@@_misc_tabular_row_separation_tl, + tabularRowSeparation .initial:n = {1}, } % \end{macrocode} % @@ -1623,6 +1625,8 @@ % 调整浮动体与文字之间的距离 \addtolength{\intextsep}{\l_@@_misc_float_separation_tl\baselineskip} \addtolength{\textfloatsep}{\l_@@_misc_float_separation_tl\baselineskip} + % 调整表格各行之间的距离 + \cs_set:Npn \arraystretch {\l_@@_misc_tabular_row_separation_tl} } % \end{macrocode} % \end{macro}