Skip to content

Commit

Permalink
Times-like math font
Browse files Browse the repository at this point in the history
  • Loading branch information
tanukihee committed Apr 2, 2020
1 parent 4bc99bf commit ed9da77
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions WHUBachelor.cls
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@
}
\pagestyle{plain}


%%% ---- 定义字体 ----- %%%
\renewcommand{\normalsize}{\zihao{-4}} % 正常字号
\setmainfont{Times New Roman}
\setsansfont{Times New Roman}
\setmonofont{Times New Roman}


%%% ---- 定义标题和段落样式 ----- %%%
% 定义1.5倍行距
\RequirePackage{setspace}
Expand Down Expand Up @@ -132,6 +124,20 @@
\RequirePackage{tikz, pgfplots} % 绘图
\RequirePackage{fontspec, color, url, array}

\RequirePackage{txfontsb} % Times 风格(数学)字体
%
% \RequirePackage{unicode-math}
% \setmathfont{TeX Gyre Termes Math} % 另一款 Times 风格数学字体,需要单独安装
% 以上两者任选其一

%%% ---- 定义字体 ----- %%%
\renewcommand{\normalsize}{\zihao{-4}} % 正常字号
\setmainfont{Times New Roman}
\setsansfont{Times New Roman}
\setmonofont{Times New Roman}



\renewcommand{\algorithmcfname}{算法} % 算法两字用中文显示

%%% ---- 数学定理样式 ----- %%%
Expand Down
Binary file modified main.pdf
Binary file not shown.

0 comments on commit ed9da77

Please sign in to comment.