CTAN Comprehensive TeX Archive Network

Directory macros/generic/ifptex

README.md

ifptex Package Bundle

: To check the engine is p (or its derivatives)

The ifptex package is a counterpart of ifxetex, ifluatex, etc. for the p engine. The ifuptex package is an alises to ifptex provided for backward compatibility.

System Requirements

  • format: plain , , and INI mode.
    • engine: Anything.
    • DVI driver (in DVI mode): Anything.
    • Dependent packages:
      • iftex

Installation

In a system compliant to TDS 1.1, move the files as follows:

  • *.sty → $TEXMF/tex/generic/ifptex

And rehash your TEXMF trees if necessary.

License

This package is distributed under the MIT License.

ifptex Package ― Test for p engine

Package Loading

In plain :

\input ifptex.sty

In :

\usepackage{ifptex}

Usage

NB: Here “-ness” is not considered.

  • \ifptex (or \ifpTeX) if-token Whether the engine is p (including up or p-ng).
    • \ifstrictptex (or \ifstrictpTeX) if-token Whether the engine is p but not up or p-ng.
    • \ifuptex (or \ifupTeX) if-token Whether the engine is up (including p-ng).
    • \ifstrictuptex (or \ifstrictupTeX) if-token Whether the engine is up but not p-ng.
    • \ifnativeuptex (or \ifnativeupTeX) if-token Whether the engine is up and its internal encoding is Unicode.
    • \ifptexng (or \ifpTeXng) if-token Whether the engine is p-ng.
    • \RequirepTeX Issues an error if \ifpTeX fails.
    • \RequireStrictpTeX Issues an error if \ifstrictpTeX fails.
    • \RequireupTeX Issues an error if \ifupTeX fails.
    • \RequireStrictupTeX Issues an error if \ifstrictupTeX fails.
    • \RequireNativeupTeX Issues an error if \ifnativeupTeX fails.
    • \RequirepTeXng Issues an error if \ifpTeXng fails.

ifuptex Package ― Alias of ifptex

The ifuptex package does nothing but loading ifptex internally. It is provided for backward compatibility.

Package Loading

In plain :

\input ifuptex.sty

In :

\usepackage{ifuptex}

Usage

Just the same as the ifptex package.

Revision History

  • Version 2.0 〈2019/11/01〉
    • Adjust to work better with the new iftex package maintanined by the 3 Project.
      • Now iftex is loaded inside ifptex.
        • Provide always all-lowercase \if...tex commands.
        • Support for loading in INI mode.
    • Version 1.2c 〈2017/10/04〉
    • Version 1.2b 〈2017/09/20〉
    • Version 1.2a 〈2017/09/15〉
    • Version 1.2 〈2017/09/09〉
      • Add \ifstrictupTeX and RequireStrictupTeX.
    • Version 1.1 〈2017/05/04〉
      • Minor fix.
    • Version 1.0 〈2013/04/29〉
      • Move to a separate bundle.
        • Change the package name to ifptex, and added the test for p (besides up).
    • Version 0.2 〈2008/03/14〉
      • First public version.

Takayuki YATO (aka. "ZR") https://github.com/zr-tex8r

Download the contents of this package in one zip archive (7.8k).

ifptex – Check if the engine is p or one of its derivatives

The ifptex package is a counterpart of ifxetex, ifluatex, etc. for the ptex engine. The ifuptex package is an alias to ifptex provided for backward compatibility.

Packageifptex
Repositoryhttps://github.com/zr-tex8r/ifptex
Version2.0 2019-11-01
LicensesMIT License
Copyright2017–2019 Takayuki YATO
MaintainerTakayuki Yato
Contained inTeX Live as ifptex
MiKTeX as ifptex
TopicsJapanese
Environment query
...
Guest Book Sitemap Contact Contact Author