From a4091fbcf407c652377a22aa9f873b069f891415 Mon Sep 17 00:00:00 2001 From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com> Date: Thu, 4 Jul 2024 00:45:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=B9=E5=B0=8F=E6=95=B0=E5=AD=A6?= =?UTF-8?q?=E8=A1=8C=E8=B7=9D=E8=87=B3=E8=A5=BF=E6=96=87=E6=B0=B4=E5=B9=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 如需恢复数学行距至原先的中文水平,可在导言区将倍数从1调大至1.53: ```latex \SetMathEnvironmentSinglespace{1.53} ``` Resolves #500 --- bithesis-doc.tex | 8 +++++++- bithesis.dtx | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/bithesis-doc.tex b/bithesis-doc.tex index f6187e41..c9a3920c 100644 --- a/bithesis-doc.tex +++ b/bithesis-doc.tex @@ -1847,8 +1847,14 @@ \subsection{如何修改数学公式的字体?} \textit{请事先安装 XITS 字体。} +此外,\TeX{} Gyre Pagella Math 等字体字面较大,略微增加数学行距可能更美观: +\begin{latex} + \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} diff --git a/bithesis.dtx b/bithesis.dtx index 608b8516..a9ba412b 100644 --- a/bithesis.dtx +++ b/bithesis.dtx @@ -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}