Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lei00764 committed Nov 11, 2024
1 parent 53dfb56 commit 13a03d5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 20 deletions.
Binary file added fonts/SimHei.ttf
Binary file not shown.
Binary file added fonts/SimSun.ttf
Binary file not shown.
Binary file added fonts/Times New Roman.ttf
Binary file not shown.
28 changes: 8 additions & 20 deletions style/tongjithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 若你想要用句点(.)替换句号(。)
Expand Down

0 comments on commit 13a03d5

Please sign in to comment.