diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pkuthss/example/misc')
3 files changed, 88 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctex-fontset-pkuthss.def b/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctex-fontset-pkuthss.def new file mode 100644 index 00000000000..086e31b0e3f --- /dev/null +++ b/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctex-fontset-pkuthss.def @@ -0,0 +1,60 @@ +% vim:ft=tex:ts=2:sw=2:et + +\ProvidesExplFile{\ExplFileName}{}{}{} + +\pdftex_if_engine:TF + { + \ctex_zhmap_case:nnn + { + \ctex_punct_set:n { windows } + \setCJKmainfont + [ BoldFont = simhei.ttf , ItalicFont = simkai.ttf ] { simsun.ttc } + \setCJKsansfont { simhei.ttf } + \setCJKmonofont { simfang.ttf } + \setCJKfamilyfont { zhkai } { simkai.ttf } + \setCJKfamilyfont { zhfs } { simfang.ttf } + \setCJKfamilyfont { zhsong } { simsun.ttc } + \setCJKfamilyfont { zhhei } { simhei.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 } { zhwindowsfonts } + \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 = SimHei , ItalicFont = [ simkai.ttf ] ] { SimSun } + \setCJKsansfont { SimHei } + \setCJKmonofont { [ simfang.ttf ] } + \setCJKfamilyfont { zhsong } { SimSun } + \setCJKfamilyfont { zhhei } { SimHei } + \setCJKfamilyfont { zhkai } { [ simkai.ttf ] } + \setCJKfamilyfont { zhfs } { [ simfang.ttf ] } + \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 + diff --git a/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctex-xecjk-winfonts.def b/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctex-xecjk-winfonts.def new file mode 100644 index 00000000000..f3c5bc742e1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctex-xecjk-winfonts.def @@ -0,0 +1,22 @@ +% vim:ft=tex + +\setCJKmainfont[BoldFont={SimHei},ItalicFont={[simkai.ttf]}]{SimSun} +\setCJKsansfont{SimHei} +\setCJKmonofont{[simfang.ttf]} + +\setCJKfamilyfont{zhsong}{SimSun} +\setCJKfamilyfont{zhhei}{SimHei} +\setCJKfamilyfont{zhkai}{[simkai.ttf]} +\setCJKfamilyfont{zhfs}{[simfang.ttf]} +%\setCJKfamilyfont{zhli}{LiSu} +%\setCJKfamilyfont{zhyou}{YouYuan} + +\newcommand*{\songti}{\CJKfamily{zhsong}} +\newcommand*{\heiti}{\CJKfamily{zhhei}} +\newcommand*{\kaishu}{\CJKfamily{zhkai}} +\newcommand*{\fangsong}{\CJKfamily{zhfs}} +%\newcommand*{\lishu}{\CJKfamily{zhli}} +%\newcommand*{\youyuan}{\CJKfamily{zhyou}} + +\endinput + diff --git a/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctexopts.cfg b/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctexopts.cfg new file mode 100644 index 00000000000..7c9aa6708ac --- /dev/null +++ b/Master/texmf-dist/doc/latex/pkuthss/example/misc/ctexopts.cfg @@ -0,0 +1,6 @@ +% vim:ft=tex + +\ProvidesExplFile{\ExplFileName}{}{}{} +\keys_set:nn { ctex / option } { fontset = pkuthss } +\endinput + |