Skip to content

Commit

Permalink
feat: misc/tabularRowSeparation选项调整表格行间距
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 committed May 2, 2024
1 parent 7c137df commit b406d67
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
15 changes: 15 additions & 0 deletions bithesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
6 changes: 5 additions & 1 deletion bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
%
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit b406d67

Please sign in to comment.