Skip to content

Commit

Permalink
use the right Times new Roman font.
Browse files Browse the repository at this point in the history
 Add \setmainfont{Times New Roman} when use xelatex and lualatex.
  • Loading branch information
cherichy authored May 20, 2021
1 parent cb5e773 commit fe15735
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions buaa.cls
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@
\RequirePackage{fontspec} % 字体设置 (!Only for XeLaTeX!)
}{}

% 根据不同编译系统选择正确的 Times New Roman字体
\usepackage{iftex}
\ifpdftex
\else
\setmainfont{Times New Roman}
\fi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% 数学环境
% 数学符号:
Expand Down

0 comments on commit fe15735

Please sign in to comment.