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.def6
1 files changed, 5 insertions, 1 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 9d230ed038d..88b0e26378d 100644
--- a/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def
+++ b/Master/texmf-dist/tex/latex/ctex/def/ctex-common.def
@@ -7,11 +7,14 @@
% Load some extra packages
+\IfFileExists{expl3.sty}{%
+ \RequirePackage{expl3}}{}
+
\RequirePackage{ifpdf}
\RequirePackage{ifxetex}
\ifxetex
- \CTEX@GBKfalse % XeTeX always use UTF-8 as default encoding
+ \CTEX@GBKfalse % XeTeX always uses UTF-8 as default encoding
\fi
\RequirePackage{keyval}[1999/03/16]
@@ -359,6 +362,7 @@
\makeatother}
\def\chinese#1{%
\@ifundefined{cc@#1}{\CTEX@null}{\csname cc@#1\endcsname}}
+\def\Chinese#1{\CTEXcounter{#1}\chinese{#1}}
% About caption