| 1 |
%% |
| 2 |
%% This is file `ctex-fontset-macold.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% ctex.dtx (with options: `fontset,macold') |
| 8 |
%% |
| 9 |
%% Copyright (C) 2003--2022 |
| 10 |
%% CTEX.ORG and any individual authors listed in the documentation. |
| 11 |
%% --------------------------------------------------------------------- |
| 12 |
%% |
| 13 |
%% This work may be distributed and/or modified under the |
| 14 |
%% conditions of the LaTeX Project Public License, either |
| 15 |
%% version 1.3c of this license or (at your option) any later |
| 16 |
%% version. This version of this license is in |
| 17 |
%% http://www.latex-project.org/lppl/lppl-1-3c.txt |
| 18 |
%% and the latest version of this license is in |
| 19 |
%% http://www.latex-project.org/lppl.txt |
| 20 |
%% and version 1.3 or later is part of all distributions of |
| 21 |
%% LaTeX version 2005/12/01 or later. |
| 22 |
%% |
| 23 |
%% This work has the LPPL maintenance status "maintained". |
| 24 |
%% |
| 25 |
%% --------------------------------------------------------------------- |
| 26 |
%% |
| 27 |
\GetIdInfo$Id: ctex.dtx 13a2256 2022-07-14 18:54:09 +0800 Qing Lee <[email protected]> $ |
| 28 |
{macOS fonts definition for Yosemite or earlier version (CTEX)} |
| 29 |
\ProvidesExplFile{ctex-fontset-macold.def} |
| 30 |
{\ExplFileDate}{2.5.10}{\ExplFileDescription} |
| 31 |
\ctex_fontset_case:nnnn |
| 32 |
{ \ctex_fontset_error:n { mac } } |
| 33 |
{ \ctex_fontset_error:n { macold } } |
| 34 |
{ \ctex_fontset_error:n { macold } } |
| 35 |
{ |
| 36 |
\setCJKmainfont { STSong } |
| 37 |
[ BoldFont = STHeiti, ItalicFont = STKaiti ] |
| 38 |
\setCJKsansfont { STXihei } [ BoldFont = STHeiti ] |
| 39 |
\setCJKmonofont { STFangsong } |
| 40 |
\setCJKfamilyfont { zhsong } { STSong } |
| 41 |
\setCJKfamilyfont { zhhei } { STHeiti } |
| 42 |
\setCJKfamilyfont { zhfs } { STFangsong } |
| 43 |
\setCJKfamilyfont { zhkai } { STKaiti } |
| 44 |
} |
| 45 |
\NewDocumentCommand \songti { } { \CJKfamily { zhsong } } |
| 46 |
\NewDocumentCommand \heiti { } { \CJKfamily { zhhei } } |
| 47 |
\NewDocumentCommand \fangsong { } { \CJKfamily { zhfs } } |
| 48 |
\NewDocumentCommand \kaishu { } { \CJKfamily { zhkai } } |
| 49 |
%% |
| 50 |
%% |
| 51 |
%% End of file `ctex-fontset-macold.def'. |