Skip to content

Commit

Permalink
修正英文字体
Browse files Browse the repository at this point in the history
  • Loading branch information
note286 committed Oct 15, 2021
1 parent ba2c002 commit e858a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ l.13 \XDUfrontmatter
从模板示例中可以看出所有英文字体均要求为Times New Roman,Times New Roman是有粗体字体的,上面设置的开启伪粗体的全局命令不会影响到Times New Roman字体,在cls文件中使用如下命令可以配置默认英文字体为Times New Roman:

```latex
\AtBeginDocument{\setmainfont{Times New Roman}}
\BeforeBeginEnvironment{document}{\setmainfont{Times New Roman}}
```

# 修复警告
Expand Down
2 changes: 1 addition & 1 deletion XDUthesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
%%
\PassOptionsToPackage{AutoFakeBold=3}{xeCJK}
\LoadClass[a4paper,zihao=-4,twoside,openright,punct,fontset=windows]{ctexbook}
\AtBeginDocument{\setmainfont{Times New Roman}}
\BeforeBeginEnvironment{document}{\setmainfont{Times New Roman}}

\RequirePackage{lmodern}

Expand Down

0 comments on commit e858a93

Please sign in to comment.