% 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]{% 字距 \begingroup \settowidth\@tempdima{\CTEX@spaceChar}% \expandafter\endgroup% \expandafter\renewcommand% \expandafter\CJKglue% \expandafter{\expandafter\hskip\the\dimexpr#1\@tempdima\relax\@plus.08\baselineskip\relax}% \CTEXsetfont} % is it a good definition? \newdimen\ccwd % 字宽 \newcommand*\CTEXsetfont{% \begingroup \settowidth\ccwd{\CTEX@spaceChar\CJKglue}% \expandafter\endgroup\expandafter\ccwd\the\ccwd\relax \unless\ifdim\parindent=\z@\parindent2\ccwd\fi} \def\CTEX@spaceChar{\hskip \f@size \p@\relax} \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