Skip to content

Commit

Permalink
Update font settings #49
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNetAdmin committed Mar 30, 2020
1 parent 4b8979d commit 22f9745
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 6 deletions.
15 changes: 14 additions & 1 deletion config/format/general/fonts.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
\setCJKmainfont{FangSong}
\newcommand{\FangSongFontName}{FangSong}
\ExplSyntaxOn
\cs_generate_variant:Nn \tl_if_eq:nnTF {Vn}

\tl_if_eq:VnTF \g__ctex_fontset_tl {mac}
{ % macOS
\renewcommand{\FangSongFontName}{STFangsong}
}
{ % Windows or Linux or Other OS
\renewcommand{\FangSongFontName}{FangSong}
}
\ExplSyntaxOff

\setCJKmainfont{\FangSongFontName}
\setmainfont{Times New Roman}
\renewcommand{\bibfont}{\zihao{5}\songti}
2 changes: 1 addition & 1 deletion config/format/major/cs/fonts.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\setCJKmainfont{FangSong}
\setCJKmainfont{\FangSongFontName}

% CS master thesis use SongTi as default font, weird...
\ifthenelse{\equal{\Degree}{graduate} \AND \equal{\GradLevel}{master}}
Expand Down
1 change: 0 additions & 1 deletion config/format/major/isee/fonts.tex

This file was deleted.

1 change: 0 additions & 1 deletion config/format/major/isee/format.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
\input{config/format/major/isee/packages}

\input{config/format/major/isee/fonts}
\input{config/format/major/isee/code}
2 changes: 1 addition & 1 deletion config/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
\usepackage{ulem}
\usepackage{pdfpages}
\usepackage[
style=gb7714-2015
style=gb7714-2015,
% gbpub=false, % Uncomment if you do NOT want '[S.l. : s.n.]' in reference entries, GitHub Issue (#47)
% gbnamefmt=lowercase, % Uncomment if you do NOT want uppercase author names in reference entries, GitHub Issue (#23)
]{biblatex}
Expand Down
11 changes: 10 additions & 1 deletion zjuthesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
% Email : zxwang42 [at] gmail.com
% Update : https://github.com/TheNetAdmin/zjuthesis/releases
% Chat Room : https://gitter.im/zjuthesis/community
% Document : https://thenetadmin.github.io/zjuthesis
% Documents : https://thenetadmin.github.io/zjuthesis

% If you have trouble using this template, please:
% 1. First go through the online documentations mentioned above, to see if
% there're already solutions.
% 2. Go through GitHub Issue list, to see if there're discussions on similar
% problems
% 3. Open a new GitHub Issue to discuss with developers
% 4. If you don't know how to use GitHub, you can visit the online chat room
% or send me an email

\documentclass[
StudentName = 姓名,
Expand Down

0 comments on commit 22f9745

Please sign in to comment.