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.
|The LaTeX Project Public License 1.3c
|The LaTeX Project Team
Vafa Khalighi (inactive)
|TeX Live as iftex
MiKTeX as iftex
Download the contents of this package in one zip archive (227.0k).
Maybe you are interested in the following packages as well.
- ifvtex: Detects use of VTeX and its facilities
- ifluatex: Provides the \ifluatex switch
- localloc: Macros for localizing TeX register allocations
- pdftexcmds: LuaTeX support for pdfTeX utility functions