Skip to content

Commit bcae36c

Browse files
YDX-2147483647fky2015
authored andcommitted
feat: 改小数学行距至西文水平
如需恢复数学行距至原先的中文水平,可在导言区将倍数从1调大至1.53: ```latex \SetMathEnvironmentSinglespace{1.53} ``` Resolves #500
1 parent 24a7e5d commit bcae36c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

bithesis-doc.tex

+8-1
Original file line numberDiff line numberDiff line change
@@ -1847,8 +1847,15 @@ \subsection{如何修改数学公式的字体?}
18471847

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

1850+
此外,如果使用 \TeX{} Gyre Pagella Math 等字面较大的字体,略微增加数学行距可能更美观:
1851+
\begin{latex}
1852+
\setmathfont{texgyrepagella-math.otf}
1853+
\SetMathEnvironmentSinglespace{1.05}
1854+
\end{latex}
1855+
18501856
\textit{更多字体与使用方法请参考
1851-
\href{https://ctan.org/pkg/unicode-math?lang=zh}{unicode-math 手册}。}
1857+
\href{https://ctan.org/pkg/unicode-math?lang=zh}{unicode-math 手册}和
1858+
\href{https://ctan.org/pkg/zhlineskip}{zhlineskip 手册}。}
18521859

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

bithesis.dtx

+3
Original file line numberDiff line numberDiff line change
@@ -961,6 +961,9 @@
961961
\RequirePackage{geometry}
962962
\RequirePackage[table,xcdraw]{xcolor}
963963
\RequirePackage{xeCJK}
964+
% 恢复数学行距(restoremathleading),同时避免改变正文行距。
965+
% (ctex 默认 linespread 1.3 × LaTeX 默认倍数 1.2 = 1.56)
966+
\RequirePackage[bodytextleadingratio=1.56]{zhlineskip}
964967
\RequirePackage{titletoc}
965968
\RequirePackage{graphicx}
966969
\RequirePackage{fancyhdr}

0 commit comments

Comments
 (0)