diff options
author | Karl Berry <karl@freefriends.org> | 2009-09-14 00:45:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-09-14 00:45:46 +0000 |
commit | 1c467aabf1a2f6e96c1cb2ef4d54e30696dbe10d (patch) | |
tree | 71512b766afbff99cbeafad38034f3d3cd3d757e /Master/texmf-dist/tex/latex/ctex/def/ctex-common.def | |
parent | 70cdedb6d90925ebd4540d77a6b9efc3f0a19b9e (diff) |
ctex 0.94 (13sep09)
git-svn-id: svn://tug.org/texlive/trunk@15273 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/def/ctex-common.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctex/def/ctex-common.def | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def b/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def index b1222db0e74..cbb98c21269 100644 --- a/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def +++ b/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def @@ -9,6 +9,11 @@ \RequirePackage{ifpdf} \RequirePackage{ifxetex} + +\ifxetex +\CTEX@GBKfalse % XeTeX always use UTF-8 as default encoding +\fi + \RequirePackage{keyval}[1999/03/16] \ifCTEX@indent \RequirePackage{indentfirst} @@ -18,16 +23,24 @@ \RequirePackage{fancyhdr} \fi \ifCTEX@hyperref - \ifxetex\else - \ifpdf\else - \AtBeginDvi{\special{pdf:tounicode GBK-EUC-UCS2}} - \fi - \fi - \ifCTEX@GBK - \RequirePackage[CJKbookmarks]{hyperref} + \ifxetex + \RequirePackage[xetex]{hyperref} \else - \RequirePackage[unicode]{hyperref} + \ifpdf % pdftex + \RequirePackage[pdftex]{hyperref} + \else % dvipdfmx + \ifCTEX@GBK + \AtBeginDvi{\special{pdf:tounicode GBK-EUC-UCS2}} + \fi + \RequirePackage[dvipdfmx]{hyperref} + \fi + \ifCTEX@GBK + \hypersetup{CJKbookmarks=true} + \else + \hypersetup{unicode=true} + \fi \fi + \hypersetup{colorlinks=true} \fi % Useful definitions |