Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/iftex

The iftex package

This very simple package, for both Plain TeX and LaTeX,
defines the \ifPDFTeX, \ifXeTeX, and \ifLuaTeX boolean
for testing whether PDFTeX, or XeTeX, or LuaTeX is being
used for typesetting.

Also provides the \RequirePDFTeX, \RequireXeTeX, and \RequireLuaTeX
command which throws an error if PDFTeX, XeTeX and LuaTeX (respectively)
is not the engine in use.

If you want to report any bugs or typos and corrections in the documentation,
or ask for any new features, or suggest any improvements, or ask any questions
about the package, then please do not send any direct emails to us; we will not 
answer any direct emails. Instead please use the issue tracker:
In doing so, please always explain your issue well enough, always include
a minimal working examples showing the issue, and always choose the appropriate
label for your query (i.e. if you are reporting any bugs, choose `bug' label). 

Current version release date: 2013/04/04
Persian TeX Group

Copyright 2010–2013
Distributed under the LaTeX Project Public License

Down­load the con­tents of this pack­age in one zip archive (31.3k).

if­tex – Am I run­ning un­der pdfTeX, XeTeX or LuaTeX?

The pack­age, which works both for Plain TeX and for LaTeX, de­fines the \ifPDFTeX, \ifXeTeX, and \ifLuaTeX con­di­tion­als for test­ing which en­gine is be­ing used for type­set­ting.

The pack­age also pro­vides the \Re­quirePDFTeX, \Re­quireXeTeX, and \Re­quireLuaTeX com­mands which throw an er­ror if pdfTeX, XeTeX or LuaTeX (re­spec­tively) is not the en­gine in use.

Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2010 Per­sian TeX Group
Main­tainerVafa Kha­lighi
Zal Mehran (in­ac­tive)
Con­tained inTeX Live as if­tex
MiKTeX as if­tex
Topics ex­am­ine the TeX pro­gram­ming en­vi­ron­ment
See also ifpdf
Guest Book Sitemap Contact Contact Author