-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathctex-fontset-local.def
39 lines (28 loc) · 1.16 KB
/
ctex-fontset-local.def
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
\ProvidesExplFile{ctex-fontset-local.def}{\ExplFileDate}{2.4.14}{\ExplFileDescription}
\setmainfont[
Path = fonts/,
BoldFont = timesbd.ttf,
ItalicFont = timesi.ttf,
BoldItalicFont = timesbi.ttf
]{times.ttf}
\setCJKmainfont[
Path = fonts/,
BoldFont = simhei.ttf,
ItalicFont = simkai.ttf
]{simsun.ttc}
\setCJKsansfont[Path = fonts/]{simhei.ttf}
\setCJKmonofont[Path = fonts/]{simfang.ttf}
\setCJKfamilyfont {zhsong} [Path = fonts/, BoldFont = FandolSong-Bold.otf] {simsun.ttc}
\setCJKfamilyfont {zhhei} [Path = fonts/, BoldFont = FandolHei-Bold.otf] {simhei.ttf}
\setCJKfamilyfont {zhfs} [Path = fonts/] {simfang.ttf}
\setCJKfamilyfont {zhkai} [Path = fonts/] {simkai.ttf}
\NewDocumentCommand \songti {} {\CJKfamily {zhsong}}
\NewDocumentCommand \heiti {} {\CJKfamily {zhhei}}
\NewDocumentCommand \fangsong {} {\CJKfamily {zhfs}}
\NewDocumentCommand \kaishu {} {\CJKfamily {zhkai}}
\newcommand{\mycite}[1]{\scalebox{1.4}[1.4]{\raisebox{-0.65ex}{\cite{#1}}}}
\def\cblue{\textcolor{blue}}%black
\def\cred{\textcolor{red}}
\def\tr{\text{tr}}
\def\col{\text{col}}
\def\diag{\text{diag}}