diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def b/Master/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def index a9a2a952b65..ebc344e95a7 100644 --- a/Master/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def +++ b/Master/texmf-dist/tex/latex/ctex/engine/ctex-xecjk-engine.def @@ -1,8 +1,22 @@ % 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[BoldFont,normalindentfirst]{xeCJK} -\defaultfontfeatures{Mapping=tex-text} +\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} |