Skip to content

Commit

Permalink
chore: Make the skips for math env bigger.
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Apr 22, 2024
1 parent f607b35 commit 39c27df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions bithesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1031,13 +1031,16 @@ \subsubsection{样式信息}

\end{function}

\begin{function}[added=2023-10-22]{style/mathAboveDisplaySkip,style/mathBelowDisplaySkip}
\begin{function}[added=2023-10-22,updated=2024-04-22]{style/mathAboveDisplaySkip,style/mathBelowDisplaySkip}
\begin{bitsyntax}[emph={[1]mathBelowDisplaySkip,mathAboveDisplaySkip}]
mathBelowDisplaySkip = (*(3pt)|任意长度*)
mathAboveDisplaySkip = (*(3pt)|任意长度*)
mathBelowDisplaySkip = (*(10pt)|任意长度*)
mathAboveDisplaySkip = (*(10pt)|任意长度*)
\end{bitsyntax}

定义公式环境(如 \verb|\begin{equation}| )到上下段落间的距离。
定义数学公式环境(如 \verb|\begin{equation}| )到上下段落间的距离。

默认值设置为 10pt——一个比较美观的宽度。
如果你更习惯 Word 文档的公式上下文距离,可以设置为一个更小的值(比如 3pt),反之亦然。

\textit{请保证源码中的公式的环境(如}\verb|\begin{equation}|
\textit{)与上一段落不要有空行。否则,公式和上文段落之间会有额外的空白。}
Expand Down
4 changes: 2 additions & 2 deletions bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,9 @@
hyphen .initial:n = {true},
% 控制公式和上下文的距离
mathAboveDisplaySkip .dim_set:N = \l_@@_style_math_above_display_skip_dim,
mathAboveDisplaySkip .initial:n = {3pt},
mathAboveDisplaySkip .initial:n = {10pt},
mathBelowDisplaySkip .dim_set:N = \l_@@_style_math_below_display_skip_dim,
mathBelowDisplaySkip .initial:n = {3pt},
mathBelowDisplaySkip .initial:n = {10pt},
betterTimesNewRoman .bool_set:N = \l_@@_style_better_new_roman_bool,
betterTimesNewRoman .initial:n = {false},
}
Expand Down

0 comments on commit 39c27df

Please sign in to comment.