From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 2 Sep 2019 13:46:59 +0900
Subject: Initial commit

---
 .../pkuthss/doc/example/ctex-fontset-pkuthss.def   | 58 ++++++++++++++++++++++
 1 file changed, 58 insertions(+)
 create mode 100644 macros/latex/contrib/pkuthss/doc/example/ctex-fontset-pkuthss.def

(limited to 'macros/latex/contrib/pkuthss/doc/example/ctex-fontset-pkuthss.def')

diff --git a/macros/latex/contrib/pkuthss/doc/example/ctex-fontset-pkuthss.def b/macros/latex/contrib/pkuthss/doc/example/ctex-fontset-pkuthss.def
new file mode 100644
index 0000000000..2febb6122d
--- /dev/null
+++ b/macros/latex/contrib/pkuthss/doc/example/ctex-fontset-pkuthss.def
@@ -0,0 +1,58 @@
+\ProvidesExplFile{\ExplFileName}{}{}{}
+
+\sys_if_engine_pdftex: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
+% vim:ft=tex:ts=2:sw=2:et
-- 
cgit v1.2.3

