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 4fc944c commit 80cbf07
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions style/tongjithesis.cls
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,20 @@

% 加载 ctexart 类,有关该类简单说明,see https://www.overleaf.com/learn/latex/Chinese
% 该类提供包括但不限于 \heiti \zihao 等指令
\LoadClass[UTF8,a4paper,fontset=none]{ctexart}

\ifwindows
\LoadClass[UTF8,a4paper,fontset=none]{ctexart}

% \newfontface\heiti{SimHei}[Path=C:/Windows/Fonts/, AutoFakeBold=3]
% \newfontface\songti{SimSun}[Path=C:/Windows/Fonts/, AutoFakeBold=3]
\setCJKmainfont{simsun}
\setCJKmainfont{simsun}[Path=C:/Windows/Fonts/, Extension=.ttc]

\setCJKfamilyfont{zhsong}{simsun}
\setCJKfamilyfont{zhhei}{simhei}
\setCJKfamilyfont{zhsong}{simsun}[Path=C:/Windows/Fonts/, Extension=.ttc]
\setCJKfamilyfont{zhhei}{simhei}[Path=C:/Windows/Fonts, Extension=.ttf]
\newcommand*{\songti}{\CJKfamily{zhsong}}
\newcommand*{\heiti}{\CJKfamily{zhhei}}
\fi

\iflinux
\LoadClass[UTF8,a4paper,fontset=none]{ctexart}

\setCJKmainfont{SimSun}[Path=/usr/share/fonts/truetype/, Extension=.ttf] % 中文字体使用宋体

\setCJKfamilyfont{zhsong}{SimSun}[Path=/usr/share/fonts/truetype/, Extension=.ttf]
Expand Down

0 comments on commit 80cbf07

Please sign in to comment.