forked from dromniscience/pku-undergraduate-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ctex-fontset-pkuthss-mac.def
58 lines (55 loc) · 2.2 KB
/
ctex-fontset-pkuthss-mac.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
\ProvidesExplFile{\ExplFileName}{}{}{}
\sys_if_engine_pdftex:TF
{
\ctex_zhmap_case:nnn
{
\ctex_punct_set:n { windows }
\setCJKmainfont
[ BoldFont = STHeiti.ttf , ItalicFont = STSTKaiti.ttf ] { STSong.ttc }
\setCJKsansfont { STHeiti.ttf }
\setCJKmonofont { STFangsong.ttf }
\setCJKfamilyfont { zhkai } { STSTKaiti.ttf }
\setCJKfamilyfont { zhfs } { STFangsong.ttf }
\setCJKfamilyfont { zhsong } { STSong.ttc }
\setCJKfamilyfont { zhhei } { STHeiti.ttf }
%\setCJKfamilyfont { zhli } { simli.ttf }
%\setCJKfamilyfont { zhyou } { simyou.ttf }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_family:nn { \CJKsfdefault } { zhhei }
\ctex_punct_map_family:nn { \CJKttdefault } { zhfs }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
}
{
\ctex_load_zhmap:nnnn { rm } { zhhei } { zhfs } { windows }
\ctex_punct_set:n { windows }
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong }
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei }
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai }
}
{
\tl_set:Nn \CJKrmdefault { rm }
\tl_set:Nn \CJKsfdefault { sf }
\tl_set:Nn \CJKttdefault { tt }
}
}
{
\setCJKmainfont
[ BoldFont = STHeiti , ItalicFont = STKaiti ] { STSong }
\setCJKsansfont { STHeiti }
\setCJKmonofont { STFangsong }
\setCJKfamilyfont { zhsong } { STSong }
\setCJKfamilyfont { zhhei } { STHeiti }
\setCJKfamilyfont { zhkai } { STKaiti }
\setCJKfamilyfont { zhfs } { STFangsong }
%\setCJKfamilyfont { zhli } { LiSu }
%\setCJKfamilyfont { zhyou } { YouYuan }
}
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } }
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } }
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } }
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } }
%\NewDocumentCommand \lishu { } { \CJKfamily { zhli } }
%\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } }
\endinput
% vim:ft=tex:ts=2:sw=2:et