diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty')
-rw-r--r-- | Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty b/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty new file mode 100644 index 00000000000..82ce9869c3c --- /dev/null +++ b/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty @@ -0,0 +1,35 @@ +% Copyright 2006 by Will Robertson <wspr81@gmail.com> +% +% Distributable under the LaTeX Project Public License, +% version 1.3b 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. + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% The ifxetex package +%% +%% Usage: LaTeX - \usepackage{ifxetex} +%% Plain - \input ifxetex.sty +%% +%% Function: Provides the \ifxetex boolean for testing +%% whether XeTeX is being used for typesetting. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% It's naughty, but I assume eTeX extensions here. +% If a user has this package, then they're using eTeX. +% (My assumption.) + +\ifdefined\ProvidesPackage + \ProvidesPackage{ifxetex} + [2006/06/12 v0.1 Provides ifxetex condition] +\fi + +\unless\ifdefined\ifxetex + \newif\ifxetex +\fi + +\ifdefined\XeTeXversion + \xetextrue +\fi |