summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-common.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-common.def')
-rw-r--r--Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-common.def50
1 files changed, 50 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-common.def b/Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-common.def
new file mode 100644
index 00000000000..3f76fe44d4a
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-common.def
@@ -0,0 +1,50 @@
+% ctex-cjk-common.def: common definitions shared by cjk-engine and xecjk-engine
+% vim:ft=tex
+
+\ifCTEX@fntef
+ \RequirePackage{CJKfntef}
+ \normalem
+\fi
+
+\def\CTEXspace{\CJKspace}
+\def\CTEXnospace{\CJKnospace}
+
+\let\CTEX@save@set@fontsize\set@fontsize
+\def\set@fontsize#1#2#3{%
+ \CTEX@save@set@fontsize{#1}{#2}{#3}%
+ \CTEXsetfont}
+\newcommand*\ziju[1]{% 字距
+ \settowidth\@tempdima{\CTEX@spaceChar}%
+ \renewcommand{\CJKglue}{\hskip #1\@tempdima\@plus.08\baselineskip\relax}%
+ \CTEXsetfont} % is it a good definition?
+\newdimen\ccwd % 字宽
+\newcommand*\CTEXsetfont{%
+ \settowidth\ccwd{\CTEX@spaceChar\CJKglue}%
+ \ifdim\parindent=0pt\else\parindent2\ccwd\fi}
+\ifCTEX@fntef
+ \def\CTEXunderdot{\CJKunderdot}
+ \def\CTEXunderline{\CJKunderline}
+ \def\CTEXunderdblline{\CJKunderdblline}
+ \def\CTEXunderwave{\CJKunderwave}
+ \def\CTEXsout{\CJKsout}
+ \def\CTEXxout{\CJKxout}
+ \def\CTEXfilltwosides{\CJKfilltwosides}
+ \def\endCTEXfilltwosides{\endCJKfilltwosides}
+ \CTEX@replacecommand{CTEX}{CJK}{underdotbasesep}
+ \CTEX@replacecommand{CTEX}{CJK}{underdotsep}
+ \CTEX@replacecommand{CTEX}{CJK}{underlinebasesep}
+ \CTEX@replacecommand{CTEX}{CJK}{underlinesep}
+ \CTEX@replacecommand{CTEX}{CJK}{underdbllinebasesep}
+ \CTEX@replacecommand{CTEX}{CJK}{underdbllinesep}
+ \CTEX@replacecommand{CTEX}{CJK}{underwavebasesep}
+ \CTEX@replacecommand{CTEX}{CJK}{underwavesep}
+ \CTEX@replacecommand{CTEX}{CJK}{southeight}
+ \CTEX@replacecommand{CTEX}{CJK}{underdotcolor}
+ \CTEX@replacecommand{CTEX}{CJK}{underwavecolor}
+ \CTEX@replacecommand{CTEX}{CJK}{underlinecolor}
+ \CTEX@replacecommand{CTEX}{CJK}{underdbllinecolor}
+ \CTEX@replacecommand{CTEX}{CJK}{soutcolor}
+ \CTEX@replacecommand{CTEX}{CJK}{xoutcolor}
+\fi
+
+\endinput