| 1 |
%% |
| 2 |
%% This is file `ctex-scheme-chinese-article.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% ctex.dtx (with options: `scheme,article,chinese') |
| 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 |
{Chinese scheme for article (CTEX)} |
| 29 |
\ProvidesExplFile{ctex-scheme-chinese-article.def} |
| 30 |
{\ExplFileDate}{2.5.10}{\ExplFileDescription} |
| 31 |
\ctex_set:nn { part } |
| 32 |
{ |
| 33 |
aftertitle = \par , |
| 34 |
hang = false , |
| 35 |
number = \chinese { part } , |
| 36 |
beforeskip = 4ex , |
| 37 |
afterskip = 3ex , |
| 38 |
format = \Large \bfseries \centering , |
| 39 |
aftername = \quad , |
| 40 |
afterindent = true |
| 41 |
} |
| 42 |
\ctex_set:nn { section } |
| 43 |
{ |
| 44 |
number = \thesection , |
| 45 |
aftername = \quad , |
| 46 |
aftertitle = \@@par , |
| 47 |
beforeskip = 3.5ex \@plus 1ex \@minus .2ex , |
| 48 |
afterskip = 2.3ex \@plus .2ex , |
| 49 |
runin = false , |
| 50 |
break = \addpenalty \@secpenalty , |
| 51 |
format = \Large \bfseries \centering , |
| 52 |
afterindent = true |
| 53 |
} |
| 54 |
\ctex_set:nn { subsection } |
| 55 |
{ |
| 56 |
number = \thesubsection , |
| 57 |
format = \large \bfseries , |
| 58 |
aftername = \quad , |
| 59 |
aftertitle = \@@par , |
| 60 |
beforeskip = 3.25ex \@plus 1ex \@minus .2ex , |
| 61 |
afterskip = 1.5ex \@plus .2ex , |
| 62 |
runin = false , |
| 63 |
break = \addpenalty \@secpenalty , |
| 64 |
afterindent = true |
| 65 |
} |
| 66 |
\ctex_set:nn { subsubsection } |
| 67 |
{ |
| 68 |
number = \thesubsubsection , |
| 69 |
format = \normalsize \bfseries , |
| 70 |
aftername = \quad , |
| 71 |
aftertitle = \@@par , |
| 72 |
beforeskip = 3.25ex \@plus 1ex \@minus .2ex , |
| 73 |
afterskip = 1.5ex \@plus .2ex , |
| 74 |
runin = false , |
| 75 |
break = \addpenalty \@secpenalty , |
| 76 |
afterindent = true |
| 77 |
} |
| 78 |
\ctex_set:nn { paragraph } |
| 79 |
{ |
| 80 |
number = \theparagraph , |
| 81 |
format = \normalsize \bfseries , |
| 82 |
aftername = \quad , |
| 83 |
beforeskip = 3.25ex \@plus 1ex \@minus .2ex , |
| 84 |
break = \addpenalty \@secpenalty , |
| 85 |
afterindent = true |
| 86 |
} |
| 87 |
\ctex_set:nn { subparagraph } |
| 88 |
{ |
| 89 |
number = \thesubparagraph , |
| 90 |
format = \normalsize \bfseries , |
| 91 |
aftername = \quad , |
| 92 |
beforeskip = 3.25ex \@plus 1ex \@minus .2ex , |
| 93 |
break = \addpenalty \@secpenalty , |
| 94 |
afterindent = true |
| 95 |
} |
| 96 |
\int_compare:nNnTF \g__ctex_section_depth_int > 2 |
| 97 |
{ |
| 98 |
\ctex_set:nn { paragraph } |
| 99 |
{ |
| 100 |
aftertitle = \@@par , |
| 101 |
afterskip = 1ex \@plus .2ex , |
| 102 |
runin = false |
| 103 |
} |
| 104 |
} |
| 105 |
{ |
| 106 |
\ctex_set:nn { paragraph } |
| 107 |
{ |
| 108 |
afterskip = 1em , |
| 109 |
runin = true |
| 110 |
} |
| 111 |
} |
| 112 |
\int_compare:nNnTF \g__ctex_section_depth_int > 3 |
| 113 |
{ |
| 114 |
\ctex_set:nn { subparagraph } |
| 115 |
{ |
| 116 |
aftertitle = \@@par , |
| 117 |
afterskip = 1ex \@plus .2ex , |
| 118 |
runin = false |
| 119 |
} |
| 120 |
} |
| 121 |
{ |
| 122 |
\ctex_set:nn { subparagraph } |
| 123 |
{ |
| 124 |
afterskip = 1em , |
| 125 |
runin = true |
| 126 |
} |
| 127 |
} |
| 128 |
\int_compare:nNnTF \g__ctex_section_depth_int > 2 |
| 129 |
{ \ctex_set:nn { subparagraph } { indent = \c_zero_dim } } |
| 130 |
{ \ctex_set:nn { subparagraph } { indent = \parindent } } |
| 131 |
\ctex_set:nn { appendix } |
| 132 |
{ number = \@Alph \c@section } |
| 133 |
\pagestyle { headings } |
| 134 |
\ctex_set:n { today = small } |
| 135 |
\ctex_if_autoindent_touched:F |
| 136 |
{ \ctex_set:n { autoindent = true } } |
| 137 |
\str_if_eq:onTF { \g__ctex_encoding_tl } { GBK } |
| 138 |
{ \ctex_file_input:n { ctex-name-gbk.cfg } } |
| 139 |
{ \ctex_file_input:n { ctex-name-utf8.cfg } } |
| 140 |
\int_compare:nNnF \g__ctex_font_size_int > { -1 } |
| 141 |
{ \int_gset:Nn \g__ctex_font_size_int { 0 } } |
| 142 |
\fp_if_nan:nT { \l__ctex_line_spread_fp } |
| 143 |
{ \fp_set:Nn \l__ctex_line_spread_fp { 1.3 } } |
| 144 |
\ctex_patch_cmd:Nnn \verse { -1.5em } { -2 \ccwd } |
| 145 |
\ctex_patch_cmd:Nnn \verse { 1.5em } { 2 \ccwd } |
| 146 |
\ctex_patch_cmd:Nnn \quotation { 1.5em } { 2 \ccwd } |
| 147 |
%% |
| 148 |
%% |
| 149 |
%% End of file `ctex-scheme-chinese-article.def'. |