LuaRocks.org had a security incident in September 2026. Read the incident report.

Am I running under pdfTeX, XeTeX or LuaTeX?

$ luarocks install iftex

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.

Versions

1.0.7-115 days ago(revision: 2)40 downloads
1.0-71 year ago(revision: 8)410 downloads

Dependency for

atbegshi, beamer, beamerswitch, etexcmds, fourier, geometry, hologo, hyperref, kvoptions, pdftexcmds, standalone

Labels

Manifests