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 pdf, or Lua?

The pack­age, which works both for Plain and for , de­fines the \ifPDF, \if, and \ifLua 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­quirePDF, \Re­quire, and \Re­quireLua com­mands which throw an er­ror if pdf, or Lua (re­spec­tively) is not the en­gine in use.

Li­cense The Project Public Li­cense 1.3
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 pro­gram­ming en­vi­ron­ment
See also ifluatex
Guest Book Sitemap Contact Contact Author