summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/ifxetex/ifxetex.sty
blob: 82ce9869c3ce4c85d324664799e973784a9f4879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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