diff options
author | Karl Berry <karl@freefriends.org> | 2006-06-19 21:16:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-06-19 21:16:44 +0000 |
commit | efccbf2fa04224ae6ce0a33a93baca39c887ea8c (patch) | |
tree | bdcb893fd87e687b0d2541b415012a37f8b9ca90 /Master/texmf-dist/tex/generic | |
parent | 46eb22010893a1dd2d3270c57dc827915e1b8181 (diff) |
new package ifxetex
git-svn-id: svn://tug.org/texlive/trunk@1703 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-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 |