Debian Codegraph @

texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese.def

raw
1 %%
2 %% This is file `ctex-scheme-chinese.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% ctex.dtx (with options: `scheme,generic,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 generic (CTEX)}
29 \ProvidesExplFile{ctex-scheme-chinese.def}
30 {\ExplFileDate}{2.5.10}{\ExplFileDescription}
31 \ctex_set:n { today = small }
32 \ctex_if_autoindent_touched:F
33 { \ctex_set:n { autoindent = true } }
34 \tl_if_eq:NnTF \c__ctex_std_class_tl { beamer }
35 {
36 \str_if_eq:onTF { \g__ctex_encoding_tl } { GBK }
37 {
38 \uselanguage { ChineseGBK }
39 \languagealias { chinese } { ChineseGBK }
40 \ctex_file_input:n { ctex-name-gbk.cfg }
41 }
42 {
43 \uselanguage { ChineseUTF8 }
44 \languagealias { chinese } { ChineseUTF8 }
45 \ctex_file_input:n { ctex-name-utf8.cfg }
46 }
47 \clist_put_left:Nn \trans@languagepath { chinese }
48 }
49 {
50 \str_if_eq:onTF { \g__ctex_encoding_tl } { GBK }
51 { \ctex_file_input:n { ctex-name-gbk.cfg } }
52 { \ctex_file_input:n { ctex-name-utf8.cfg } }
53 \int_compare:nNnF \g__ctex_font_size_int > { -1 }
54 { \int_gset:Nn \g__ctex_font_size_int { 0 } }
55 \fp_if_nan:nT { \l__ctex_line_spread_fp }
56 { \fp_set:Nn \l__ctex_line_spread_fp { 1.3 } }
57 \tl_if_exist:NT \c__ctex_std_class_tl
58 { \RequirePackage { indentfirst } }
59 }
60 %%
61 %%
62 %% End of file `ctex-scheme-chinese.def'.