Skip to content

Commit

Permalink
feat: 改小数学行距至西文水平
Browse files Browse the repository at this point in the history
如需恢复数学行距至原先的中文水平,可在导言区将倍数从1调大至1.53:

```latex
\SetMathEnvironmentSinglespace{1.53}
```

Resolves BITNP#500
  • Loading branch information
YDX-2147483647 authored and fky2015 committed Jul 5, 2024
1 parent 24a7e5d commit bcae36c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bithesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1847,8 +1847,15 @@ \subsection{如何修改数学公式的字体?}

\textit{请事先安装 XITS 字体。}

此外,如果使用 \TeX{} Gyre Pagella Math 等字面较大的字体,略微增加数学行距可能更美观:
\begin{latex}
\setmathfont{texgyrepagella-math.otf}
\SetMathEnvironmentSinglespace{1.05}
\end{latex}

\textit{更多字体与使用方法请参考
\href{https://ctan.org/pkg/unicode-math?lang=zh}{unicode-math 手册}。}
\href{https://ctan.org/pkg/unicode-math?lang=zh}{unicode-math 手册}和
\href{https://ctan.org/pkg/zhlineskip}{zhlineskip 手册}。}

\subsection{如何采用与 Word 相同的中文字体?} \label{sec:word-fonts}

Expand Down
3 changes: 3 additions & 0 deletions bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,9 @@
\RequirePackage{geometry}
\RequirePackage[table,xcdraw]{xcolor}
\RequirePackage{xeCJK}
% 恢复数学行距(restoremathleading),同时避免改变正文行距。
% (ctex 默认 linespread 1.3 × LaTeX 默认倍数 1.2 = 1.56)
\RequirePackage[bodytextleadingratio=1.56]{zhlineskip}
\RequirePackage{titletoc}
\RequirePackage{graphicx}
\RequirePackage{fancyhdr}
Expand Down

0 comments on commit bcae36c

Please sign in to comment.