diff options
author | Karl Berry <karl@freefriends.org> | 2009-01-30 00:06:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-01-30 00:06:03 +0000 |
commit | b51a317576a6238db0b50d51a6cc66475500d66a (patch) | |
tree | 9ccaf4f5de91ab54795a25da260a9eab38afd3a1 /Master/texmf-dist/tex/generic/ifxetex | |
parent | 41385d6ac9ae8bcf6f4b97607babb55681255e43 (diff) |
ifxetex update (29jan09)
git-svn-id: svn://tug.org/texlive/trunk@12011 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/ifxetex')
-rw-r--r-- | Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty b/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty index b2d466ac3b4..d3707febc03 100644 --- a/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty +++ b/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty @@ -1,16 +1,11 @@ -%% LaTeX2e file `ifxetex.sty' -%% generated by the `filecontents' environment -%% from source `ifxetex' on 2008/09/18. -%% % \iffalse -% Copyright 2006-2008 by Will Robertson <wspr81@gmail.com> +% Copyright 2006-2009 by Will Robertson <wspr81@gmail.com> % % Distributable under the LaTeX Project Public License, % version 1.3c or higher (your choice). The latest version of % this license is at: http://www.latex-project.org/lppl.txt % -% This work is "maintained" (as per LPPL maintenance status) -% by Will Robertson. +% This work is maintained by Will Robertson. % \fi % Ensure loading a single time only @@ -20,19 +15,7 @@ % Declare ourselves to \LaTeX \expandafter\ifx\csname ProvidesPackage\endcsname\relax\else \ProvidesPackage{ifxetex} - [2008/09/18 v0.4 Provides ifxetex conditional] -\fi - -% Create, if necessary, the \cmd\ifxetex\ conditional -\expandafter\ifx\csname ifxetex\endcsname\relax - \newif\ifxetex -\fi - -% Set \cmd\ifxetex\ accordingly -\expandafter\ifx\csname XeTeXrevision\endcsname\relax - \xetexfalse -\else - \xetextrue + [2009/01/23 v0.5 Provides ifxetex conditional] \fi % For \XeTeX-exclusive packages @@ -48,3 +31,18 @@ ********************************************}% \endgroup \fi} + +% Abort if \cmd\ifxetex\ is already defined +% (assume that it has already been set correctly)^^A +% \footnote{Thanks to \textit{Dan Luecking} for suggesting this.} +\expandafter\ifx\csname ifxetex\endcsname\relax\else + \expandafter\endinput +\fi + +% Create and set \cmd\ifxetex\ accordingly +\newif\ifxetex +\expandafter\ifx\csname XeTeXrevision\endcsname\relax + \xetexfalse +\else + \xetextrue +\fi |