0% found this document useful (0 votes)
171 views3 pages

Using the iftex Package in LaTeX

This package provides a way to check if a document is being processed with PDFTEX, or XeTEX, or LuaTEX.

Uploaded by

tristaloid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
171 views3 pages

Using the iftex Package in LaTeX

This package provides a way to check if a document is being processed with PDFTEX, or XeTEX, or LuaTEX.

Uploaded by

tristaloid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

The iftex Package

[Link]
Persian TeX Group
persian-tex@[Link]
Version 0.2

Contents
1
2
2.1
2.2
3
3.1
3.2
3.3
4
4.1
4.2
4.3

Introduction 1
Loading The Package 1
Loading The Package in Plain TEX 2
Loading The Package in LATEX 2
Defined Conditionals 2
For PDFTEX 2
For XeTEX 2
For LuaTEX 2
Defined Commands 2
For PDFTEX 2
For XeTEX 2
For LuaTEX 3

Introduction

This package provides a way to check if a document is being processed with PDFTEX,
or XeTEX, or LuaTEX.

Loading The Package

The package can be loaded in the usual way both in Plain TEX and LATEX.

2.1

Loading The Package in Plain TEX

\input [Link]
2.2

Loading The Package in LATEX

\usepackage{iftex }

Defined Conditionals

3.1

For PDFTEX

\ifPDFTeX
material for PDFTEX
\else
material not for PDFTEX
\fi
3.2

For XeTEX

\ifXeTeX
material for XeTEX
\else
material not for XeTEX
\fi
3.3

For LuaTEX

\ifLuaTeX
material for LuaTEX
\else
material not for LuaTEX
\fi

Defined Commands

4.1

For PDFTEX

\RequirePDFTeX
This command tests for PDFTEX use and throws an error if a different engine is
being used.
4.2

For XeTEX

\RequireXeTeX
This command tests for XeTEX use and throws an error if a different engine is being
used.

4.3

For LuaTEX

\RequireLuaTeX
This command tests for LuaTEX use and throws an error if a different engine is
being used.

You might also like