Loading CHANGELOG.md +1 −0 Changes for CHANGELOG.md: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ Changelog 维护应保持最新版本在文件上面的原则,日期格式按 ## [Unreleased](https://github.com/SUSTech-CRA/sustech-master-thesis/compare/v1.3.18...HEAD) ### Changed - 添加加载外部英文字体选项,改善 Unix 系统下的英文字体编译。 - 添加加载TeX Gyre Termes Math 数学字体选项,以TeX克隆版满足Times New Roman的数学字体选项要求。 - 同步上游文献样式更新。 ### Added Loading data/chap03.tex +18 −2 Changes for data/chap03.tex: 18 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -135,10 +135,17 @@ \section{数学字体} 按照《撰写规范》全文统一采用 Cambria Math (MS Word默认字体)或 Xits Math 中一种字体作为表达式字体即可。Cambria Math 缺少部分样式,例如:积分符号设定为 upright 也看起来没有变化。 按照《撰写规范》表达式字体可以采用 Times New Roman、Xits Math 或 Cambria Math(MS Word默认字体)。Cambria Math 缺少部分样式,例如:积分符号设定为 upright 也看起来没有变化。 Cambria Math 字体样例: TeX Gyre Termes Math 字体(Times New Roman的TeX克隆版)样例: \makeatletter \thu@load@math@font@times \begin{equation} \frac{1}{2 \uppi \symup{i}} \int_\gamma f = \sum_{k=1}^m n(\gamma; a_k) \mathscr{R}(f; a_k) \end{equation} \makeatother Cambria Math 字体样例: \makeatletter \thu@load@math@font@cambria \begin{equation} Loading @@ -154,3 +161,12 @@ Xits Math 字体样例: \end{equation} \thu@load@math@font@cambria \makeatother STIX Math 字体样例: \makeatletter \thu@load@math@font@stix \begin{equation} \frac{1}{2 \uppi \symup{i}} \int_\gamma f = \sum_{k=1}^m n(\gamma; a_k) \mathscr{R}(f; a_k) \end{equation} \makeatother sustech-setup.tex +1 −1 Changes for sustech-setup.tex: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ % % 数学字体 % math-style = GB, % GB (中文默认) | TeX (英文默认) math-font = cambria, % cambria (默认,同 Word 默认数学字体一致) | xits (TeX 内常用数学字体)| times (Times New Roman 的TeX克隆版) math-font = cambria, % cambria (默认,同 Word 默认数学字体一致) | times (Times New Roman 的TeX克隆版)| xits | stix } % 载入所需的宏包 Loading sustechthesis.dtx +32 −7 Changes for sustechthesis.dtx: 32 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -1562,11 +1562,10 @@ \fi % \end{macrocode} % % XITS 字体于 2018-10-03 更改了字体的文件名,所以需要判断。 % 原文件名为 \file{xits-regular.otf}、\file{xits-math.otf} 等, % 后改为 \file{XITS-Regular.otf}、\file{XITSMath-Regular.otf} 等。 % % Libertinus 字体同样。 % XITS 字体。 % XITS 的文件名在 v1.109 2018-09-30 % 从 \file{xits-regular.otf}、\file{xits-math.otf} 分别改为 % \file{XITS-Regular.otf}、\file{XITSMath-Regular.otf}。 % \begin{macrocode} \let\thu@font@family@xits\@empty \newcommand\thu@set@xits@names{% Loading @@ -1590,6 +1589,12 @@ }% \fi } % \end{macrocode} % % Libertinus 字体。 % Libertinus 的文件名在 v6.7 2019-04-03 从小写改为驼峰式, % 在大小写敏感的平台上需要进行判断。 % \begin{macrocode} \let\thu@font@family@libertinus\@empty \newcommand\thu@set@libertinus@names{% \ifx\thu@font@family@libertinus\@empty Loading @@ -1614,6 +1619,25 @@ } % \end{macrocode} % % STIX Two 字体。 % STIX 文件名在 v2.10 2020-12-19 从 % \file{STIX2Text-Regular.otf}、\file{STIX2Math.otf} 分别改为 % \file{STIXTwoText-Regular.otf}、\file{STIXTwoMath-Regular.otf}。 % \begin{macrocode} \let\thu@font@family@stix\@empty \newcommand\thu@set@stix@names{% \ifx\thu@font@family@stix\@empty \IfFontExistsTF{STIXTwoText-Regular.otf}{% \gdef\thu@font@family@stix{STIXTwoText}% \gdef\thu@font@name@stix@math{STIXTwoMath-Regular}% }{% \gdef\thu@font@family@stix{STIX2Text}% \gdef\thu@font@name@stix@math{STIX2Math}% }% \fi } % \end{macrocode} % % 《撰写手册》要求西文字体使用 Times New Roman 和 Arial, % 但是在 Linux 下没有这两个字体,所以使用它们的克隆版 TeX Gyre Termes 和 % TeX Gyre Heros。 Loading Loading @@ -1793,11 +1817,12 @@ ]% } \newcommand\thu@load@math@font@stix{% \setmathfont{STIX2Math}[ \thu@set@stix@names \setmathfont{\thu@font@name@stix@math}[ Extension = .otf, StylisticSet = \thu@xits@integral@stylistic@set, ]% \setmathfont{STIX2Math}[ \setmathfont{\thu@font@name@stix@math}[ Extension = .otf, StylisticSet = 1, range = {cal,bfcal}, Loading Loading
CHANGELOG.md +1 −0 Changes for CHANGELOG.md: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ Changelog 维护应保持最新版本在文件上面的原则,日期格式按 ## [Unreleased](https://github.com/SUSTech-CRA/sustech-master-thesis/compare/v1.3.18...HEAD) ### Changed - 添加加载外部英文字体选项,改善 Unix 系统下的英文字体编译。 - 添加加载TeX Gyre Termes Math 数学字体选项,以TeX克隆版满足Times New Roman的数学字体选项要求。 - 同步上游文献样式更新。 ### Added Loading
data/chap03.tex +18 −2 Changes for data/chap03.tex: 18 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -135,10 +135,17 @@ \section{数学字体} 按照《撰写规范》全文统一采用 Cambria Math (MS Word默认字体)或 Xits Math 中一种字体作为表达式字体即可。Cambria Math 缺少部分样式,例如:积分符号设定为 upright 也看起来没有变化。 按照《撰写规范》表达式字体可以采用 Times New Roman、Xits Math 或 Cambria Math(MS Word默认字体)。Cambria Math 缺少部分样式,例如:积分符号设定为 upright 也看起来没有变化。 Cambria Math 字体样例: TeX Gyre Termes Math 字体(Times New Roman的TeX克隆版)样例: \makeatletter \thu@load@math@font@times \begin{equation} \frac{1}{2 \uppi \symup{i}} \int_\gamma f = \sum_{k=1}^m n(\gamma; a_k) \mathscr{R}(f; a_k) \end{equation} \makeatother Cambria Math 字体样例: \makeatletter \thu@load@math@font@cambria \begin{equation} Loading @@ -154,3 +161,12 @@ Xits Math 字体样例: \end{equation} \thu@load@math@font@cambria \makeatother STIX Math 字体样例: \makeatletter \thu@load@math@font@stix \begin{equation} \frac{1}{2 \uppi \symup{i}} \int_\gamma f = \sum_{k=1}^m n(\gamma; a_k) \mathscr{R}(f; a_k) \end{equation} \makeatother
sustech-setup.tex +1 −1 Changes for sustech-setup.tex: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ % % 数学字体 % math-style = GB, % GB (中文默认) | TeX (英文默认) math-font = cambria, % cambria (默认,同 Word 默认数学字体一致) | xits (TeX 内常用数学字体)| times (Times New Roman 的TeX克隆版) math-font = cambria, % cambria (默认,同 Word 默认数学字体一致) | times (Times New Roman 的TeX克隆版)| xits | stix } % 载入所需的宏包 Loading
sustechthesis.dtx +32 −7 Changes for sustechthesis.dtx: 32 added lines, 7 removed lines. Original line number Diff line number Diff line Loading @@ -1562,11 +1562,10 @@ \fi % \end{macrocode} % % XITS 字体于 2018-10-03 更改了字体的文件名,所以需要判断。 % 原文件名为 \file{xits-regular.otf}、\file{xits-math.otf} 等, % 后改为 \file{XITS-Regular.otf}、\file{XITSMath-Regular.otf} 等。 % % Libertinus 字体同样。 % XITS 字体。 % XITS 的文件名在 v1.109 2018-09-30 % 从 \file{xits-regular.otf}、\file{xits-math.otf} 分别改为 % \file{XITS-Regular.otf}、\file{XITSMath-Regular.otf}。 % \begin{macrocode} \let\thu@font@family@xits\@empty \newcommand\thu@set@xits@names{% Loading @@ -1590,6 +1589,12 @@ }% \fi } % \end{macrocode} % % Libertinus 字体。 % Libertinus 的文件名在 v6.7 2019-04-03 从小写改为驼峰式, % 在大小写敏感的平台上需要进行判断。 % \begin{macrocode} \let\thu@font@family@libertinus\@empty \newcommand\thu@set@libertinus@names{% \ifx\thu@font@family@libertinus\@empty Loading @@ -1614,6 +1619,25 @@ } % \end{macrocode} % % STIX Two 字体。 % STIX 文件名在 v2.10 2020-12-19 从 % \file{STIX2Text-Regular.otf}、\file{STIX2Math.otf} 分别改为 % \file{STIXTwoText-Regular.otf}、\file{STIXTwoMath-Regular.otf}。 % \begin{macrocode} \let\thu@font@family@stix\@empty \newcommand\thu@set@stix@names{% \ifx\thu@font@family@stix\@empty \IfFontExistsTF{STIXTwoText-Regular.otf}{% \gdef\thu@font@family@stix{STIXTwoText}% \gdef\thu@font@name@stix@math{STIXTwoMath-Regular}% }{% \gdef\thu@font@family@stix{STIX2Text}% \gdef\thu@font@name@stix@math{STIX2Math}% }% \fi } % \end{macrocode} % % 《撰写手册》要求西文字体使用 Times New Roman 和 Arial, % 但是在 Linux 下没有这两个字体,所以使用它们的克隆版 TeX Gyre Termes 和 % TeX Gyre Heros。 Loading Loading @@ -1793,11 +1817,12 @@ ]% } \newcommand\thu@load@math@font@stix{% \setmathfont{STIX2Math}[ \thu@set@stix@names \setmathfont{\thu@font@name@stix@math}[ Extension = .otf, StylisticSet = \thu@xits@integral@stylistic@set, ]% \setmathfont{STIX2Math}[ \setmathfont{\thu@font@name@stix@math}[ Extension = .otf, StylisticSet = 1, range = {cal,bfcal}, Loading