CTEX KIT TIPS

for package fontspec:
edit $texlive/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def

% ctex-xecjk-engine.def: for XeTeX engine with xeCJK
% vim:ft=tex

% compatibility with amssymb.sty etc and xunicode.sty v0.95+
\RequirePackage{savesym}
\def\CTEX@save@symlist{hbar,Finv,aleph,beth,gimel,daleth,Game}

\@for \reversed@a:=\CTEX@save@symlist \do{%
  \savesymbol{\reversed@a}}

\RequirePackage{fontspec}
\RequirePackage[BoldFont,SlantFont,normalindentfirst]{xeCJK}
\defaultfontfeatures{Ligatures=TeX}

\@for \reversed@a:=\CTEX@save@symlist \do{%
  \restoresymbol{UTF}{\reversed@a}%
  \expandafter\ifx \csname\reversed@a\endcsname \relax
    \expandafter\let \csname\reversed@a\endcsname \CTEX@undefined
  \fi}
\let\CTEX@save@symlist\CTEX@undefined

\ifCTEX@punct
  \punctstyle{quanjiao}
\else
  \punctstyle{plain}
\fi

\input{ctex-cjk-common.def}

\ifCTEX@nofonts\else
  \ifCTEX@winfonts
    \input{ctex-xecjk-winfonts.def}
  \else\ifCTEX@adobefonts
    \input{ctex-xecjk-adobefonts.def}
  \fi\fi
\fi

\endinput

for winfonts for ctex-xecjk
$texlive/texmf-dist/tex/latex/ctex/fontset/ctex-xecjk-winfonts.def

% ctex-xecjk-winfonts.def: Windows 的 xeCJK 字体设置,默认为六种中易字体
% vim:ft=tex

\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}
\setCJKsansfont{SimHei}
\setCJKmonofont{FangSong}
\setmainfont{Times New Roman}
\setsansfont{Droid Serif}
\setmonofont{Droid Sans Mono}

\setCJKfamilyfont{zhsong}{SimSun}
\setCJKfamilyfont{zhhei}{SimHei}
\setCJKfamilyfont{zhkai}{KaiTi}
\setCJKfamilyfont{zhfs}{FangSong}
\setCJKfamilyfont{zhli}{LiSu}
\setCJKfamilyfont{zhyou}{YouYuan}

\newcommand*{\songti}{\CJKfamily{zhsong}} % 宋体
\newcommand*{\heiti}{\CJKfamily{zhhei}}   % 黑体
\newcommand*{\kaishu}{\CJKfamily{zhkai}}  % 楷书
\newcommand*{\fangsong}{\CJKfamily{zhfs}} % 仿宋
\newcommand*{\lishu}{\CJKfamily{zhli}}    % 隶书
\newcommand*{\youyuan}{\CJKfamily{zhyou}} % 幼圆

\endinput

Specifies the width and center for tabular

\usepackage{multirow,array}
\begin{tabular}{|m{3cm}<{\centering}|c|c|c|c|}
\hline
\multirow{2}{*}{Multi-Row} &
\multicolumn{2}{c|}{Multi-Column} &
\multicolumn{2}{c|}{\multirow{2}{*}{Multi-Row and Col}} \\
\cline{2-3}&column-1&column-2&\multicolumn{2}{c|}{} \\
\hline
label-1&label-2&label-3&label-4&label-5 \\
\hline
\end{tabular}

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: