summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctex/engine/ctex-cct-engine.def
blob: cd54033ed970692a4746e5ec7ca649b633741a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
% ctex-cct-engine.def: for LaTeX engine with CCT
% vim:ft=tex

\ifCTEX@cctfont
  \RequirePackage{cctbase}[2003/04/05]
\else
  \RequirePackage[CJK]{cctbase}[2003/04/05]
\fi
\ifCTEX@punct
  \CCTpuncttrue
\else
  \CCTpunctfalse
\fi
\ifCTEX@fntef
  \RequirePackage{CCTfntef}
  \normalem
\fi
\ifCTEX@space
  \AtBeginDocument{\CCTspace}
\else
  \AtBeginDocument{\CCTnospace}
\fi
\def\CTEXspace{\CCTspace}
\def\CTEXnospace{\CCTnospace}
\ifCTEX@cctfont\else
  \CCTdefziti A song song    % 宋体
  \CCTdefziti B hei  song    % 黑体
  \CCTdefziti C kai  song    % 楷体
  \CCTdefziti D fs   song    % 仿宋
  \CCTdefziti E bs   hei     % 标宋
  \CCTdefziti F li   hei     % 隶书
  \CCTdefziti G you  kai     % 幼圆
  \DeclareRobustCommand*{\songti}{\ziti{A}\relax}   % 宋体
  \DeclareRobustCommand*{\heiti}{\ziti{B}\relax}    % 黑体
  \DeclareRobustCommand*{\kaishu}{\ziti{C}\relax}   % 楷书
  \DeclareRobustCommand*{\fangsong}{\ziti{D}\relax} % 仿宋
  \DeclareRobustCommand*{\biaosong}{\ziti{E}\relax} % 标宋
  \DeclareRobustCommand*{\lishu}{\ziti{F}\relax}    % 隶书
  \DeclareRobustCommand*{\youyuan}{\ziti{G}\relax}  % 幼圆
\fi
\ifx\CCT@set@fontsize\undefined
  \let\CCT@set@fontsize\oset@fontsize
\fi
\let\CTEX@save@set@fontsize\set@fontsize
\def\set@fontsize#1#2#3{%
  \CCT@set@fontsize{#1}{#2}{#3}%
  \zihaoAny{#2}%
  \CTEXsetfont}
\let\CTEX@save@ziju\ziju
\renewcommand*\ziju[1]{% 字距
  \CTEX@save@ziju{#1}%
  \CTEXsetfont}
\newcommand*\CTEXsetfont{%
  \ifdim\parindent=0pt\else\parindent2\ccwd\fi}
\ifCTEX@fntef
  \def\CTEXunderdot{\CCTunderdot}
  \def\CTEXunderline{\CCTunderline}
  \def\CTEXunderdblline{\CCTunderdblline}
  \def\CTEXunderwave{\CCTunderwave}
  \def\CTEXsout{\CCTsout}
  \def\CTEXxout{\CCTxout}
  \def\CTEXfilltwosides{\CCTfilltwosides}
  \def\endCTEXfilltwosides{\endCCTfilltwosides}
  \CTEX@replacecommand{CTEX}{CCT}{underdotbasesep}
  \CTEX@replacecommand{CTEX}{CCT}{underdotsep}
  \CTEX@replacecommand{CTEX}{CCT}{underlinebasesep}
  \CTEX@replacecommand{CTEX}{CCT}{underlinesep}
  \CTEX@replacecommand{CTEX}{CCT}{underdbllinebasesep}
  \CTEX@replacecommand{CTEX}{CCT}{underdbllinesep}
  \CTEX@replacecommand{CTEX}{CCT}{underwavebasesep}
  \CTEX@replacecommand{CTEX}{CCT}{underwavesepa}
  \CTEX@replacecommand{CTEX}{CCT}{underwavesep}
  \CTEX@replacecommand{CTEX}{CCT}{southeight}
  \CTEX@replacecommand{CTEX}{CCT}{xoutheight}
  \CTEX@replacecommand{CTEX}{CCT}{underdotcolor}
  \CTEX@replacecommand{CTEX}{CCT}{underwavecolor}
  \CTEX@replacecommand{CTEX}{CCT}{underlinecolor}
  \CTEX@replacecommand{CTEX}{CCT}{underdbllinecolor}
  \CTEX@replacecommand{CTEX}{CCT}{soutcolor}
  \CTEX@replacecommand{CTEX}{CCT}{xoutcolor}
\fi
\endinput