diff --git a/fonts/SimHei.ttf b/fonts/SimHei.ttf new file mode 100644 index 0000000..5bd4687 Binary files /dev/null and b/fonts/SimHei.ttf differ diff --git a/fonts/SimSun.ttf b/fonts/SimSun.ttf new file mode 100644 index 0000000..463b3a9 Binary files /dev/null and b/fonts/SimSun.ttf differ diff --git a/fonts/Times New Roman.ttf b/fonts/Times New Roman.ttf new file mode 100644 index 0000000..d7969c3 Binary files /dev/null and b/fonts/Times New Roman.ttf differ diff --git a/style/tongjithesis.cls b/style/tongjithesis.cls index f1dc29c..24c5693 100644 --- a/style/tongjithesis.cls +++ b/style/tongjithesis.cls @@ -8,27 +8,15 @@ % 加载 ctexart 类,有关该类简单说明,see https://www.overleaf.com/learn/latex/Chinese % 该类提供包括但不限于 \heiti \zihao 等指令 \LoadClass[UTF8,a4paper,fontset=none]{ctexart} +% 设置默认中英文默认字体 +\setCJKmainfont{SimSun.ttf}[Path=./fonts/] +\setmainfont{Times New Roman}[Path=./fonts/] + +\setCJKfamilyfont{zhsong}{SimSun}[Path=./fonts/, Extension=.ttf] +\setCJKfamilyfont{zhhei}{SimHei}[Path=./fonts/, Extension=.ttf] +\newcommand*{\songti}{\CJKfamily{zhsong}} +\newcommand*{\heiti}{\CJKfamily{zhhei}} -\ifwindows - % \newfontface\heiti{SimHei}[Path=C:/Windows/Fonts/, AutoFakeBold=3] - % \newfontface\songti{SimSun}[Path=C:/Windows/Fonts/, AutoFakeBold=3] - \setCJKmainfont{simsun.ttc} - - \setCJKfamilyfont{zhsong}{simsun.ttc} - \setCJKfamilyfont{zhhei}{simhei.ttf} - \newcommand*{\songti}{\CJKfamily{zhsong}} - \newcommand*{\heiti}{\CJKfamily{zhhei}} -\fi - -\iflinux - \setCJKmainfont{SimSun}[Path=/usr/share/fonts/truetype/, Extension=.ttf] % 中文字体使用宋体 - - \setCJKfamilyfont{zhsong}{SimSun}[Path=/usr/share/fonts/truetype/, Extension=.ttf] - \setCJKfamilyfont{zhhei}{SimHei}[Path=/usr/share/fonts/truetype/, Extension=.ttf] - \newcommand*{\songti}{\CJKfamily{zhsong}} - \newcommand*{\heiti}{\CJKfamily{zhhei}} -\fi -\setmainfont{Times New Roman} % 英文字体使用 Times New Roman %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 若你想要用句点(.)替换句号(。)