-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,343 additions
and
1,315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,95 @@ | ||
\GetIdInfo$Id: ctex.dtx 13a2256 2024-08-30 00:00:00 +0800 Jingze You <youjingze@msn.cn> $ | ||
{WYQY fonts definition (CTEX)} | ||
\ProvidesExplFile{ctex-fontset-wyqy.def} | ||
{\ExplFileDate}{2.5.10}{\ExplFileDescription} | ||
|
||
\ctex_fontset_case:nnnn | ||
{ \ctex_fontset_error:n { wyqy } } | ||
{ % pdftex (only for compatibility) | ||
\ctex_zhmap_case:nnn | ||
{ | ||
\setCJKmainfont[Path={fonts/}]{SimSun.ttf} | ||
\setCJKsansfont[Path={fonts/}]{SimHei.ttf} | ||
\setCJKmonofont[Path={fonts/}]{FangSong_GB2312.ttf} | ||
|
||
\setCJKfamilyfont{zhsong}[Path={fonts/}]{SimSun.ttf} | ||
\setCJKfamilyfont{zhhei}[Path={fonts/}]{SimHei.ttf} | ||
\setCJKfamilyfont{zhkai}[Path={fonts/}]{KaiTi_GB2312.ttf} | ||
\setCJKfamilyfont{zhli}[Path={fonts/}]{LiShu.ttf} | ||
\setCJKfamilyfont{zhyou}[Path={fonts/}]{SimYou.ttf} | ||
\setCJKfamilyfont{zhyahei}[Path={fonts/}]{MSYaHei.ttf} | ||
|
||
\setmainfont{times.ttf}[ % Times New Roman 字体 | ||
Path = fonts/, | ||
BoldFont = timesbd.ttf, | ||
ItalicFont = timesi.ttf, | ||
BoldItalicFont = timesbi.ttf | ||
] | ||
\setmonofont{cour.ttf}[ % Courier New 字体 | ||
Path = fonts/, | ||
BoldFont = courbd.ttf, | ||
ItalicFont = couri.ttf, | ||
BoldItalicFont = courbi.ttf | ||
] | ||
|
||
\ctex_punct_set:n { wyqy } | ||
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } | ||
\ctex_punct_map_family:nn { \CJKsfdefault } { zhhei } | ||
\ctex_punct_map_family:nn { \CJKttdefault } { zhsong } | ||
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } | ||
\ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhheib } | ||
\ctex_punct_map_bfseries:nn | ||
{ \CJKrmdefault, \CJKttdefault, zhsong } | ||
{ zhsongb } | ||
} | ||
{ | ||
\ctex_load_zhmap:nnnn { rm } { zhhei } { zhsong } { ubuntu } | ||
\ctex_punct_set:n { ubuntu } | ||
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } | ||
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } | ||
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } | ||
} | ||
{ \ctex_fontset_error:n { wyqy } } | ||
} | ||
{ % uptex (only for compatibility) | ||
\ctex_set_upmap_unicode:nnn { upserif } { fonts/SimSun.ttf } { fonts/SimSun.ttf } | ||
\ctex_set_upmap_unicode:nnn { upsans } { fonts/SimHei.ttf } { fonts/SimHei.ttf } | ||
\ctex_set_upmap_unicode:nnn { upmono } { fonts/FangSong_GB2312.ttf } { } | ||
\ctex_set_upmap:nnn { upserifit } { fonts/KaiTi_GB2312.ttf } { } | ||
\ctex_set_upfamily:nnn { zhsong } { upzhserif } { upzhserifb } | ||
\ctex_set_upfamily:nnn { zhhei } { upzhsans } { upzhsansb } | ||
\ctex_set_upfamily:nnn { zhkai } { upzhserifit } { } | ||
} | ||
{ % xetex / luatex | ||
\setCJKmainfont[Path={fonts/}]{SimSun.ttf} | ||
\setCJKsansfont[Path={fonts/}]{SimHei.ttf} | ||
\setCJKmonofont[Path={fonts/}]{FangSong_GB2312.ttf} | ||
|
||
\setCJKfamilyfont{zhsong}[Path={fonts/}]{SimSun.ttf} | ||
\setCJKfamilyfont{zhhei}[Path={fonts/}]{SimHei.ttf} | ||
\setCJKfamilyfont{zhkai}[Path={fonts/}]{KaiTi_GB2312.ttf} | ||
\setCJKfamilyfont{zhli}[Path={fonts/}]{LiShu.ttf} | ||
\setCJKfamilyfont{zhyou}[Path={fonts/}]{SimYou.ttf} | ||
\setCJKfamilyfont{zhyahei}[Path={fonts/}]{MSYaHei.ttf} | ||
|
||
\setmainfont{times.ttf}[ % Times New Roman 字体 | ||
Path = fonts/, | ||
BoldFont = timesbd.ttf, | ||
ItalicFont = timesi.ttf, | ||
BoldItalicFont = timesbi.ttf | ||
] | ||
\setmonofont{cour.ttf}[ % Courier New 字体 | ||
Path = fonts/, | ||
BoldFont = courbd.ttf, | ||
ItalicFont = couri.ttf, | ||
BoldItalicFont = courbi.ttf | ||
] | ||
} | ||
|
||
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } } | ||
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } } | ||
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } } | ||
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } } | ||
\NewDocumentCommand \lishu { } { \CJKfamily { zhli } } | ||
\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } } | ||
\GetIdInfo$Id: ctex.dtx 13a2256 2024-08-30 00:00:00 +0800 Jingze You <youjingze@msn.cn> $ | ||
{TONGJI fonts definition by WYQY (CTEX)} | ||
\ProvidesExplFile{ctex-fontset-tongji.def} | ||
{\ExplFileDate}{2.5.10}{\ExplFileDescription} | ||
\ctex_fontset_case:nnnn | ||
{ \ctex_fontset_error:n { tongji } } | ||
{ % pdftex (only for compatibility) | ||
\ctex_zhmap_case:nnn | ||
{ | ||
\setCJKmainfont[Path={fonts/}]{SimSun.ttf} | ||
\setCJKsansfont[Path={fonts/}]{SimHei.ttf} | ||
\setCJKmonofont[Path={fonts/}]{FangSong_GB2312.ttf} | ||
\setCJKfamilyfont{zhsong}[Path={fonts/}]{SimSun.ttf} | ||
\setCJKfamilyfont{zhhei}[Path={fonts/}]{SimHei.ttf} | ||
\setCJKfamilyfont{zhkai}[Path={fonts/}]{KaiTi_GB2312.ttf} | ||
\setCJKfamilyfont{zhli}[Path={fonts/}]{LiShu.ttf} | ||
\setCJKfamilyfont{zhyou}[Path={fonts/}]{SimYou.ttf} | ||
\setCJKfamilyfont{zhyahei}[Path={fonts/}]{MSYaHei.ttf} | ||
\setmainfont{times.ttf}[ % Times New Roman 字体 | ||
Path = fonts/, | ||
BoldFont = timesbd.ttf, | ||
ItalicFont = timesi.ttf, | ||
BoldItalicFont = timesbi.ttf | ||
] | ||
\setmonofont{cour.ttf}[ % Courier New 字体 | ||
Path = fonts/, | ||
BoldFont = courbd.ttf, | ||
ItalicFont = couri.ttf, | ||
BoldItalicFont = courbi.ttf | ||
] | ||
\ctex_punct_set:n { tongji } | ||
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } | ||
\ctex_punct_map_family:nn { \CJKsfdefault } { zhhei } | ||
\ctex_punct_map_family:nn { \CJKttdefault } { zhsong } | ||
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } | ||
\ctex_punct_map_bfseries:nn { \CJKsfdefault, zhhei } { zhheib } | ||
\ctex_punct_map_bfseries:nn | ||
{ \CJKrmdefault, \CJKttdefault, zhsong } | ||
{ zhsongb } | ||
} | ||
{ | ||
\ctex_load_zhmap:nnnn { rm } { zhhei } { zhsong } { ubuntu } | ||
\ctex_punct_set:n { ubuntu } | ||
\ctex_punct_map_family:nn { \CJKrmdefault } { zhsong } | ||
\ctex_punct_map_bfseries:nn { \CJKrmdefault } { zhhei } | ||
\ctex_punct_map_itshape:nn { \CJKrmdefault } { zhkai } | ||
} | ||
{ \ctex_fontset_error:n { tongji } } | ||
} | ||
{ % uptex (only for compatibility) | ||
\ctex_set_upmap_unicode:nnn { upserif } { fonts/SimSun.ttf } { fonts/SimSun.ttf } | ||
\ctex_set_upmap_unicode:nnn { upsans } { fonts/SimHei.ttf } { fonts/SimHei.ttf } | ||
\ctex_set_upmap_unicode:nnn { upmono } { fonts/FangSong_GB2312.ttf } { } | ||
\ctex_set_upmap:nnn { upserifit } { fonts/KaiTi_GB2312.ttf } { } | ||
\ctex_set_upfamily:nnn { zhsong } { upzhserif } { upzhserifb } | ||
\ctex_set_upfamily:nnn { zhhei } { upzhsans } { upzhsansb } | ||
\ctex_set_upfamily:nnn { zhkai } { upzhserifit } { } | ||
} | ||
{ % xetex / luatex | ||
\setCJKmainfont[Path={fonts/}]{SimSun.ttf} | ||
\setCJKsansfont[Path={fonts/}]{SimHei.ttf} | ||
\setCJKmonofont[Path={fonts/}]{FangSong_GB2312.ttf} | ||
\setCJKfamilyfont{zhsong}[Path={fonts/}]{SimSun.ttf} | ||
\setCJKfamilyfont{zhhei}[Path={fonts/}]{SimHei.ttf} | ||
\setCJKfamilyfont{zhkai}[Path={fonts/}]{KaiTi_GB2312.ttf} | ||
\setCJKfamilyfont{zhli}[Path={fonts/}]{LiShu.ttf} | ||
\setCJKfamilyfont{zhyou}[Path={fonts/}]{SimYou.ttf} | ||
\setCJKfamilyfont{zhyahei}[Path={fonts/}]{MSYaHei.ttf} | ||
\setmainfont{times.ttf}[ % Times New Roman 字体 | ||
Path = fonts/, | ||
BoldFont = timesbd.ttf, | ||
ItalicFont = timesi.ttf, | ||
BoldItalicFont = timesbi.ttf | ||
] | ||
\setmonofont{cour.ttf}[ % Courier New 字体 | ||
Path = fonts/, | ||
BoldFont = courbd.ttf, | ||
ItalicFont = couri.ttf, | ||
BoldItalicFont = courbi.ttf | ||
] | ||
} | ||
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } } | ||
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } } | ||
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } } | ||
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } } | ||
\NewDocumentCommand \lishu { } { \CJKfamily { zhli } } | ||
\NewDocumentCommand \youyuan { } { \CJKfamily { zhyou } } | ||
\NewDocumentCommand \yahei { } { \CJKfamily { zhyahei } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.