Skip to content

Commit b406d67

Browse files
feat: misc/tabularRowSeparation选项调整表格行间距
默认值相当于不调整,与之前相同。 https://www.overleaf.com/learn/latex/Questions/How_do_I_change_column_or_row_separation_in_LaTeX_tables%3F
1 parent 7c137df commit b406d67

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

bithesis-doc.tex

+15
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,21 @@ \subsubsection{其他配置}
13321332

13331333
\end{function}
13341334

1335+
\begin{function}[added=2024-04-30]{misc/tabularRowSeparation}
1336+
\begin{bitsyntax}[emph={[1]tabularRowSeparation}]
1337+
tabularRowSeparation = (*(1)|\marg{正实数}*)
1338+
\end{bitsyntax}
1339+
1340+
\textit{此选项一般不需要用户自行修改。}
1341+
1342+
此选项用于调整表格各行之间的距离,允许小数。默认值为1,相当于不调整。
1343+
1344+
学校没有明文规定,不过设为1.25更接近本科Word模板实作,设为1.6更接近硕博Word模板实作。
1345+
1346+
\textit{请在导言区使用此选项。}
1347+
1348+
\end{function}
1349+
13351350
\subsubsection{常量名称覆盖}
13361351
\label{sec:const}
13371352

bithesis.dtx

+5-1
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,11 @@
733733
autoref / table .initial:n = {\g_@@_const_autoref_tab_tl},
734734
autoref / equ .tl_set:N = \equationautorefname,
735735
autoref / equ .initial:n = {\g_@@_const_autoref_equ_tl},
736-
% 浮动体与正文之间的距离
736+
% 浮动体相关的各种间距
737737
floatSeparation .tl_set:N = \l_@@_misc_float_separation_tl,
738738
floatSeparation .initial:n = {0},
739+
tabularRowSeparation .tl_set:N = \l_@@_misc_tabular_row_separation_tl,
740+
tabularRowSeparation .initial:n = {1},
739741
}
740742
% \end{macrocode}
741743
%
@@ -1623,6 +1625,8 @@
16231625
% 调整浮动体与文字之间的距离
16241626
\addtolength{\intextsep}{\l_@@_misc_float_separation_tl\baselineskip}
16251627
\addtolength{\textfloatsep}{\l_@@_misc_float_separation_tl\baselineskip}
1628+
% 调整表格各行之间的距离
1629+
\cs_set:Npn \arraystretch {\l_@@_misc_tabular_row_separation_tl}
16261630
}
16271631
% \end{macrocode}
16281632
% \end{macro}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy