diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/ifxetex')
-rw-r--r-- | Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty b/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty index d3707febc03..367d3d2a845 100644 --- a/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty +++ b/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty @@ -1,5 +1,5 @@ % \iffalse -% Copyright 2006-2009 by Will Robertson <wspr81@gmail.com> +% Copyright 2006-2010 by Will Robertson <wspr81@gmail.com> % % Distributable under the LaTeX Project Public License, % version 1.3c or higher (your choice). The latest version of @@ -8,17 +8,18 @@ % This work is maintained by Will Robertson. % \fi -% Ensure loading a single time only +% Ensure loading a single time only. \csname ifxetexloaded\endcsname \let\ifxetexloaded\endinput -% Declare ourselves to \LaTeX +% Declare ourselves to \LaTeX. +\begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname ProvidesPackage\endcsname\relax\else \ProvidesPackage{ifxetex} - [2009/01/23 v0.5 Provides ifxetex conditional] + [2010/09/12 v0.6 Provides ifxetex conditional] \fi -% For \XeTeX-exclusive packages +% For \XeTeX-exclusive packages. \def\RequireXeTeX{% \ifxetex\else \begingroup @@ -39,8 +40,9 @@ \expandafter\endinput \fi -% Create and set \cmd\ifxetex\ accordingly +% Create and set \cmd\ifxetex\ accordingly. \newif\ifxetex +\begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname XeTeXrevision\endcsname\relax \xetexfalse \else |