Skip to content

Commit 61ae4a1

Browse files
committed
Merge branch 'mathscr-mathcal-issue'
2 parents a0cb591 + 1ffaeb8 commit 61ae4a1

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212

1313
* 添加 `none` 的字体设置。[#72]
1414

15+
## v0.6e
16+
17+
### Fixed
18+
19+
- 修复`\mathcal``\mathscr` 的问题 ([#125](https://github.com/whutug/whu-thesis/issues/125))
20+
1521
## v0.6d
1622

1723
### 删除

whu-thesis.cls

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
\ProvidesExplClass{whu-thesis}{2021/05/20}{0.6d}
1212
{Wuhan University Thesis Template}
1313

14+
% TODO 引擎处理修改为英文
1415
\msg_new:nnn { whu-thesis } { 引擎不支持 }
1516
{
1617
whu-thesis ~ 不支持 ~ #1 ~ 引擎。\\\\
@@ -95,6 +96,7 @@
9596
}
9697
\ProcessKeysOptions { whu / option }
9798

99+
% TODO 直接改为 keys_set
98100
\tl_if_eq:NnT \g__whu_option_type_tl { master }
99101
{
100102
\keys_define:nn { whu / option }
@@ -119,7 +121,7 @@
119121
\clist_gput_right:Nn \g__whu_option_to_class_clist
120122
{ punct = \g__whu_option_punct_tl }
121123
}
122-
% 判断是否有 chinese-jfm,若有则使用 chinese-jfm
124+
123125

124126
\sys_if_engine_xetex:T { \RequirePackage { etoolbox } }
125127
% 在载入文档类之前引入 etoolbox
@@ -634,8 +636,10 @@
634636
% 数学字体
635637
\cs_new_protected:Npn \__whu_set_math_font_xits:
636638
{
637-
\setmathfont { XITSMath-Regular.otf }
638-
[ BoldFont = XITSMath-Bold.otf ]
639+
% \setmathfont { XITSMath-Regular.otf }
640+
% [ BoldFont = XITSMath-Bold.otf ]
641+
\setmathfont{STIXTwoMath-Regular.otf}
642+
\setmathfont{STIXTwoMath-Regular.otf}[range={scr,bfscr},StylisticSet=01]
639643
}
640644

641645
\cs_new_protected:Npn \__whu_set_math_font_termes:

0 commit comments

Comments
 (0)