| 1 |
%% |
| 2 |
%% This is file `ctex-scheme-plain-article.def', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% ctex.dtx (with options: `scheme,article,plain') |
| 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 |
{Plain scheme for article (CTEX)} |
| 29 |
\ProvidesExplFile{ctex-scheme-plain-article.def} |
| 30 |
{\ExplFileDate}{2.5.10}{\ExplFileDescription} |
| 31 |
\ctex_set:nn { part } |
| 32 |
{ |
| 33 |
aftertitle = \par , |
| 34 |
hang = false , |
| 35 |
name = \partname \space , |
| 36 |
number = \thepart , |
| 37 |
beforeskip = 4ex , |
| 38 |
afterskip = 3ex , |
| 39 |
format = \raggedright , |
| 40 |
nameformat = \Large \bfseries , |
| 41 |
aftername = \par \nobreak , |
| 42 |
titleformat = \huge \bfseries , |
| 43 |
afterindent = false |
| 44 |
} |
| 45 |
\ctex_set:nn { section } |
| 46 |
{ |
| 47 |
number = \thesection , |
| 48 |
aftername = \quad , |
| 49 |
aftertitle = \@@par , |
| 50 |
beforeskip = 3.5ex \@plus 1ex \@minus .2ex , |
| 51 |
afterskip = 2.3ex \@plus .2ex , |
| 52 |
runin = false , |
| 53 |
break = \addpenalty \@secpenalty , |
| 54 |
format = \Large \bfseries , |
| 55 |
afterindent = false |
| 56 |
} |
| 57 |
\ctex_set:nn { subsection } |
| 58 |
{ |
| 59 |
number = \thesubsection , |
| 60 |
format = \large \bfseries , |
| 61 |
aftername = \quad , |
| 62 |
aftertitle = \@@par , |
| 63 |
beforeskip = 3.25ex \@plus 1ex \@minus .2ex , |
| 64 |
afterskip = 1.5ex \@plus .2ex , |
| 65 |
runin = false , |
| 66 |
break = \addpenalty \@secpenalty , |
| 67 |
afterindent = false |
| 68 |
} |
| 69 |
\ctex_set:nn { subsubsection } |
| 70 |
{ |
| 71 |
number = \thesubsubsection , |
| 72 |
format = \normalsize \bfseries , |
| 73 |
aftername = \quad , |
| 74 |
aftertitle = \@@par , |
| 75 |
beforeskip = 3.25ex \@plus 1ex \@minus .2ex , |
| 76 |
afterskip = 1.5ex \@plus .2ex , |
| 77 |
runin = false , |
| 78 |
break = \addpenalty \@secpenalty , |
| 79 |
afterindent = false |
| 80 |
} |
| 81 |
\ctex_set:nn { paragraph } |
| 82 |
{ |
| 83 |
number = \theparagraph , |
| 84 |
format = \normalsize \bfseries , |
| 85 |
aftername = \quad , |
| 86 |
beforeskip = 3.25ex \@plus 1ex \@minus .2ex , |
| 87 |
break = \addpenalty \@secpenalty , |
| 88 |
afterindent = false |
| 89 |
} |
| 90 |
\ctex_set:nn { subparagraph } |
| 91 |
{ |
| 92 |
number = \thesubparagraph , |
| 93 |
format = \normalsize \bfseries , |
| 94 |
aftername = \quad , |
| 95 |
beforeskip = 3.25ex \@plus 1ex \@minus .2ex , |
| 96 |
break = \addpenalty \@secpenalty , |
| 97 |
afterindent = false |
| 98 |
} |
| 99 |
\int_compare:nNnTF \g__ctex_section_depth_int > 2 |
| 100 |
{ |
| 101 |
\ctex_set:nn { paragraph } |
| 102 |
{ |
| 103 |
aftertitle = \@@par , |
| 104 |
afterskip = 1ex \@plus .2ex , |
| 105 |
runin = false |
| 106 |
} |
| 107 |
} |
| 108 |
{ |
| 109 |
\ctex_set:nn { paragraph } |
| 110 |
{ |
| 111 |
afterskip = 1em , |
| 112 |
runin = true |
| 113 |
} |
| 114 |
} |
| 115 |
\int_compare:nNnTF \g__ctex_section_depth_int > 3 |
| 116 |
{ |
| 117 |
\ctex_set:nn { subparagraph } |
| 118 |
{ |
| 119 |
aftertitle = \@@par , |
| 120 |
afterskip = 1ex \@plus .2ex , |
| 121 |
runin = false |
| 122 |
} |
| 123 |
} |
| 124 |
{ |
| 125 |
\ctex_set:nn { subparagraph } |
| 126 |
{ |
| 127 |
afterskip = 1em , |
| 128 |
runin = true |
| 129 |
} |
| 130 |
} |
| 131 |
\int_compare:nNnTF \g__ctex_section_depth_int > 2 |
| 132 |
{ \ctex_set:nn { subparagraph } { indent = \c_zero_dim } } |
| 133 |
{ \ctex_set:nn { subparagraph } { indent = \parindent } } |
| 134 |
\ctex_set:nn { appendix } |
| 135 |
{ number = \@Alph \c@section } |
| 136 |
%% |
| 137 |
%% |
| 138 |
%% End of file `ctex-scheme-plain-article.def'. |