Skip to content

Commit ff07068

Browse files
committed
Change default math-style to TeX
1 parent 39c07b2 commit ff07068

4 files changed

Lines changed: 46 additions & 53 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- 新增选项 `review = true/false` 选择盲审模式([#489](https://github.com/ustctug/ustcthesis/issues/489))。
1313

14+
### Changed
15+
16+
- 默认数学符号风格 `math-style` 改为 `TeX`
17+
1418
### Fixed
1519

1620
- 修正 arXiv 预印本的 URL 错误([#490](https://github.com/ustctug/ustcthesis/issues/490))。

chapters/math.tex

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,43 @@ \chapter{数学}
44

55
\section{数学符号}
66

7-
《撰写手册》要求数学符号遵循 GB/T 3102.11—1993《物理科学和技术中使用的数学符号》
8-
\footnote{原 GB 3102.11—1993,自 2017 年 3 月 23 日起,该标准转为推荐性标准。}。
9-
该标准参照采纳 ISO 31-11:1992 \footnote{目前已更新为 ISO 80000-2:2019。},
10-
但是与 \TeX{} 默认的美国数学学会(AMS)的符号习惯有所区别。
11-
具体地来说主要有以下差异:
12-
\begin{enumerate}
13-
\item 大写希腊字母默认为斜体,如
14-
\begin{equation*}
15-
\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega.
16-
\end{equation*}
17-
注意有限增量符号 $\increment$ 固定使用正体,模板提供了 \cs{increment} 命令。
18-
\item 小于等于号和大于等于号使用倾斜的字形 $\le$$\ge$
19-
\item 积分号使用正体,比如 $\int$$\oint$
20-
\item
21-
偏微分符号 $\partial$ 使用正体。
22-
\item
23-
省略号 \cs{dots} 按照中文的习惯固定居中,比如
24-
\begin{equation*}
25-
1, 2, \dots, n \quad 1 + 2 + \dots + n.
26-
\end{equation*}
27-
\item
28-
实部 $\Re$ 和虚部 $\Im$ 的字体使用罗马体。
29-
\end{enumerate}
30-
31-
以上数学符号样式的差异可以在模板中统一设置。
32-
但是还有一些需要用户在写作时进行处理:
33-
\begin{enumerate}
34-
\item 数学常数和特殊函数名用正体,如
35-
\begin{equation*}
36-
\uppi = 3.14\dots; \quad
37-
\symup{i}^2 = -1; \quad
38-
\symup{e} = \lim_{n \to \infty} \left( 1 + \frac{1}{n} \right)^n.
39-
\end{equation*}
40-
\item 微分号使用正体,比如 $\dif y / \dif x$
41-
\item 向量、矩阵和张量用粗斜体(\cs{symbf}),如 $\symbf{x}$$\symbf{\Sigma}$$\symbfsf{T}$
42-
\item 自然对数用 $\ln x$ 不用 $\log x$
43-
\end{enumerate}
7+
% 《撰写手册》要求数学符号遵循 GB/T 3102.11—1993《物理科学和技术中使用的数学符号》
8+
% \footnote{原 GB 3102.11—1993,自 2017 年 3 月 23 日起,该标准转为推荐性标准。}。
9+
% 该标准参照采纳 ISO 31-11:1992 \footnote{目前已更新为 ISO 80000-2:2019。},
10+
% 但是与 \TeX{} 默认的美国数学学会(AMS)的符号习惯有所区别。
11+
% 具体地来说主要有以下差异:
12+
% \begin{enumerate}
13+
% \item 大写希腊字母默认为斜体,如
14+
% \begin{equation*}
15+
% \Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega.
16+
% \end{equation*}
17+
% 注意有限增量符号 $\increment$ 固定使用正体,模板提供了 \cs{increment} 命令。
18+
% \item 小于等于号和大于等于号使用倾斜的字形 $\le$、$\ge$。
19+
% \item 积分号使用正体,比如 $\int$、$\oint$。
20+
% \item
21+
% 偏微分符号 $\partial$ 使用正体。
22+
% \item
23+
% 省略号 \cs{dots} 按照中文的习惯固定居中,比如
24+
% \begin{equation*}
25+
% 1, 2, \dots, n \quad 1 + 2 + \dots + n.
26+
% \end{equation*}
27+
% \item
28+
% 实部 $\Re$ 和虚部 $\Im$ 的字体使用罗马体。
29+
% \end{enumerate}
30+
31+
% 以上数学符号样式的差异可以在模板中统一设置。
32+
% 但是还有一些需要用户在写作时进行处理:
33+
% \begin{enumerate}
34+
% \item 数学常数和特殊函数名用正体,如
35+
% \begin{equation*}
36+
% \uppi = 3.14\dots; \quad
37+
% \symup{i}^2 = -1; \quad
38+
% \symup{e} = \lim_{n \to \infty} \left( 1 + \frac{1}{n} \right)^n.
39+
% \end{equation*}
40+
% \item 微分号使用正体,比如 $\dif y / \dif x$。
41+
% \item 向量、矩阵和张量用粗斜体(\cs{symbf}),如 $\symbf{x}$、$\symbf{\Sigma}$、$\symbfsf{T}$。
42+
% \item 自然对数用 $\ln x$ 不用 $\log x$。
43+
% \end{enumerate}
4444

4545
模板中使用 \pkg{unicode-math} 宏包配置数学字体。
4646
该宏包与传统的 \pkg{amsfonts}、\pkg{amssymb}、\pkg{bm}、

ustcthesis-doc.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
\xeCJKsetwidth{‘’“”}{1em}
3636
}{}
3737
\unimathsetup{
38-
math-style=ISO,
39-
bold-style=ISO,
38+
math-style=TeX,
39+
bold-style=TeX,
4040
}
4141
\IfFontExistsTF{xits-math.otf}{
4242
\setmathfont[
@@ -502,10 +502,10 @@ \subsection{数学}
502502

503503
\DescribeOption{math-style}
504504
用户可以通过设置 \opt{math-style} 选择数学符号样式(可选:
505-
\opt{GB}(中文默认),\opt{TeX}(英文默认)和 \opt{ISO}),比如:
505+
\opt{TeX}(默认),\opt{GB}(默认)和 \opt{ISO}),比如:
506506
\begin{latex}
507507
\ustcsetup{
508-
math-style = ISO,
508+
math-style = GB,
509509
}
510510
\end{latex}
511511

ustcthesis.cls

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,21 +1142,10 @@
11421142
\fi
11431143
}
11441144

1145-
\ifustc@main@language@chinese
1146-
\ustcsetup{math-style = GB}%
1147-
\else
1148-
\ustcsetup{math-style = TeX}%
1149-
\fi
1145+
\ustcsetup{math-style = TeX}%
11501146

11511147
\ustc@set@math@style
11521148
\ustc@option@hook{math-style}{\ustc@set@math@style}
1153-
\ustc@option@hook{main-language}{%
1154-
\ifustc@main@language@chinese
1155-
\ustcsetup{math-style = GB}%
1156-
\else
1157-
\ustcsetup{math-style = TeX}%
1158-
\fi
1159-
}
11601149

11611150
% 针对 \pkg{unicode-math} 逐项配置数学符号。
11621151

0 commit comments

Comments
 (0)