From b406d67dab3aab0507d5c6d3bb4db4a06918243d Mon Sep 17 00:00:00 2001 From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com> Date: Tue, 30 Apr 2024 23:29:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20`misc/tabularRowSeparation`=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E8=B0=83=E6=95=B4=E8=A1=A8=E6=A0=BC=E8=A1=8C=E9=97=B4?= =?UTF-8?q?=E8=B7=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 默认值相当于不调整,与之前相同。 https://www.overleaf.com/learn/latex/Questions/How_do_I_change_column_or_row_separation_in_LaTeX_tables%3F --- bithesis-doc.tex | 15 +++++++++++++++ bithesis.dtx | 6 +++++- 2 files changed, 20 insertions(+), 1 deletion(-) 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}