diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/engine/ctex-cct-engine.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctex/engine/ctex-cct-engine.def | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/engine/ctex-cct-engine.def b/Master/texmf-dist/tex/latex/ctex/engine/ctex-cct-engine.def new file mode 100644 index 00000000000..cd54033ed97 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ctex/engine/ctex-cct-engine.def @@ -0,0 +1,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 |