Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 改小数学行距至西文水平 #537

Merged
merged 1 commit into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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