Comprehensive TeX Archive Network

Direc­tory tex-archive/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


Name Size Date Notes
README 1154 2013-04-03 15:56
if­tex.pdf 30641 2013-04-04 10:00
if­tex.sty 2560 2013-04-03 15:56
if­tex.tex 2462 2013-04-03 15:56

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

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

The pack­age, which works both for Plain TeX and for LaTeX, de­fines the \ifPDFTeX, \ifXTeX, 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­quireXTeX, and \Re­quireLuaTeX com­mands which throw an er­ror if pdfTeX, XTeX or LuaTeX (re­spec­tively) is not the en­gine in use.

Pack­age De­tailsif­tex
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2010 Per­sian TeX Group
Main­tainerZal Mehran (in­ac­tive)
Vafa Kha­lighi
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 ifluatex
Guest Book Sitemap Contact Contact Author