AZ logo

Package iftex:
Am I running under pdfTeX, XeTeX or LuaTeX?

The package, which works both for Plain TeX and for LaTeX, defines the \ifPDFTeX, \ifXeTeX, and \ifLuaTeX conditionals for testing which engine is being used for typesetting.

The package also provides the \RequirePDFTeX, \RequireXeTeX, and \RequireLuaTeX commands which throw an error if pdfTeX, XeTeX or LuaTeX (respectively) is not the engine in use.

Getting it

If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)

Distribution Package name
MiKTeX iftex
TeX Live iftex

You can also visit iftex's CTAN directory to browse the source or download the material for installation by hand.

More

Documentation on CTAN
Readme
Package documentation
Documentation off CTAN -none known-
Maintainers
Vafa Khalighi
Version 0.2
License LaTeX Project Public License, version 1.3 or later
Related packages
ifluatex:
Provides the \ifluatex switch.
ifpdf:
Provides the \ifpdf conditional.
Keywords
macro programming
Characterizations
primary:
Programming in TeX

You can suggest changes to the keywords and characterizations and the maintainer information.

You can get information about any package.