diff options
author | Karl Berry <karl@freefriends.org> | 2011-01-19 00:47:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-01-19 00:47:10 +0000 |
commit | c7ab8d5408060c6ff547f9f04e6cdad24ead0e49 (patch) | |
tree | 0741fab98093726f6bbeed26e9948ae4669569d4 /Master/texmf-dist/tex/latex/ctex/engine | |
parent | b3a94254cdd1bd342e18623e615d412548dbef35 (diff) |
ctex 1.02 (19jan11)
git-svn-id: svn://tug.org/texlive/trunk@21116 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/engine')
3 files changed, 25 insertions, 9 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 index cd54033ed97..528a2b7c323 100644 --- a/Master/texmf-dist/tex/latex/ctex/engine/ctex-cct-engine.def +++ b/Master/texmf-dist/tex/latex/ctex/engine/ctex-cct-engine.def @@ -16,9 +16,9 @@ \normalem \fi \ifCTEX@space - \AtBeginDocument{\CCTspace} + \CTEX@AtBeginDocument{\CCTspace} \else - \AtBeginDocument{\CCTnospace} + \CTEX@AtBeginDocument{\CCTnospace} \fi \def\CTEXspace{\CCTspace} \def\CTEXnospace{\CCTnospace} diff --git a/Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-engine.def b/Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-engine.def index 05634b7663b..d0ed28a8996 100644 --- a/Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-engine.def +++ b/Master/texmf-dist/tex/latex/ctex/engine/ctex-cjk-engine.def @@ -29,12 +29,14 @@ \def\CTEX@endCJK{\clearpage\end{CJK*}} \fi -\let\CTEX@begindocumenthook\@begindocumenthook -\let\CTEX@enddocumenthook\@enddocumenthook -\def\AtBeginDocument{\g@addto@macro\CTEX@begindocumenthook} -\def\AtEndDocument{\g@addto@macro\CTEX@enddocumenthook} -\def\@begindocumenthook{\CTEX@begindocumenthook\CTEX@beginCJK} -\def\@enddocumenthook{\CTEX@endCJK\CTEX@enddocumenthook} +\def\@begindocumenthook{% + \CTEX@save@begindocumenthook% + \CTEX@begindocumenthook% + \CTEX@beginCJK} +\def\@enddocumenthook{% + \CTEX@endCJK + \CTEX@enddocumenthook% + \CTEX@save@enddocumenthook} \input{ctex-cjk-common.def} 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} |