summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def
diff options
context:
space:
mode:
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.def13
1 files changed, 13 insertions, 0 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 d6d32eac64f..b1222db0e74 100644
--- a/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def
+++ b/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def
@@ -7,6 +7,7 @@
% Load some extra packages
+\RequirePackage{ifpdf}
\RequirePackage{ifxetex}
\RequirePackage{keyval}[1999/03/16]
\ifCTEX@indent
@@ -16,6 +17,18 @@
\ifCTEX@fancyhdr
\RequirePackage{fancyhdr}
\fi
+\ifCTEX@hyperref
+ \ifxetex\else
+ \ifpdf\else
+ \AtBeginDvi{\special{pdf:tounicode GBK-EUC-UCS2}}
+ \fi
+ \fi
+ \ifCTEX@GBK
+ \RequirePackage[CJKbookmarks]{hyperref}
+ \else
+ \RequirePackage[unicode]{hyperref}
+ \fi
+\fi
% Useful definitions