CTAN Comprehensive TeX Archive Network

Ifplatform – Conditionals to test which platform is being used

This package uses the 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.

Sources/macros/latex/contrib/ifplatform
Documentation
Repository
Version0.4a 2017-10-13
LicensesThe Project Public License 1.3c
Copyright2007–2017 Will Robertson and Johannes Große
MaintainerJohannes Große
Will Robertson
TDS archiveifplatform.tds.zip
Contained inTeX Live as ifplatform
MiKTeX as ifplatform
TopicsEnvironment query
Tagged PDF – fully compatible

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

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Package Links

Guest Book Sitemap Contact Contact Author