summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex')
-rw-r--r--Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex12
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex b/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex
index 3d2806f552d..301c2d9e893 100644
--- a/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex
+++ b/Master/texmf-dist/tex/generic/ctex/zhfandolfonts.tex
@@ -59,7 +59,13 @@
\noexpand\noexpand\noexpand\endinput}%
\the\toks2}%
\expandafter\x\csname ctex@zhmap@endinput\endcsname
-\input ifpdf.sty\relax
+\begingroup\expandafter\endgroup
+\expandafter\let\csname ifzhmappdf\expandafter\endcsname\csname
+ \expandafter\ifx\csname ifctexpdf\endcsname\relax
+ \expandafter\ifx\csname pdfoutput\endcsname\relax
+ iffalse\else\ifnum\pdfoutput < 1 iffalse\else iftrue\fi\fi
+ \else ifctexpdf\fi
+\endcsname
\begingroup
\expandafter\ifx\csname ProvidesFile\endcsname\relax
\long\def\x#1\ProvidesFile#2[#3]{%
@@ -70,9 +76,9 @@
\fi
\endgroup
\ProvidesFile{zhfandolfonts.tex}%
- [2014/06/03 v2.0 Fandol font map loader for DVIPDFMx (CTEX)]
+ [2015/05/25 v2.1 Fandol font map loader for DVIPDFMx (CTEX)]
-\ifpdf
+\ifzhmappdf
%% pdfTeX does not support OTF fonts
\else