The TeX Catalogue Online

ifplatform

Conditionals to test which platform is being used.

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.

The authors are Will Robertson and Johannes Große. The package is Copyright © 2007-2010 Will Robertson and Johannes Große.

License: lppl Version: 0.4 Catalogued: 2014-02-26