CTAN masthead graphic CTAN lion sketch

Package information

Identifier ifplatform
Caption Conditionals to test which platform is being used.
Description

This package uses the (La)TeX extension -shell-escape to establish whether the document is being processed on a Windows or on a Unix-like system (Mac OS X, Linux, etc.), or on Cygwin (Unix environment over a windows system).

Booleans provided are:

  • \ifwindows ,
  • \iflinux ,
  • \ifmacosx and
  • \ifcygwin .

The package also preserves the output of uname on a Unix-like system, which may be used to distinguish between various classes of Unix systems.

Version 0.3a
License LaTeX Project Public License, any version
Home None known
Maintainers
Name Active?
Johannes Große True
Will Robertson True
Location on CTAN /macros/latex/contrib/ifplatform
Documentation on CTAN
In English: Readme
In English: Package documentation
Documentation off CTAN None known
Related packages None known
Keywords None known
Primary function Top > Programming in TeX
Secondary functions None known