CTAN Comprehensive TeX Archive Network

ifplatform – Conditionals to test which platform is being used

This pack­age uses the ex­ten­sion -shell-es­cape to es­tab­lish whether the doc­u­ment is be­ing pro­cessed on a Win­dows or on a Unix-like sys­tem (Mac OS X, Linux, etc.), or on Cyg­win (Unix en­vi­ron­ment over a win­dows sys­tem).

Booleans pro­vided are:

  • \ifwin­dows,
  • \iflinux,
  • \if­ma­cosx and
  • \if­cyg­win.

The pack­age also pre­serves the out­put of un­ame on a Unix-like sys­tem, which may be used to dis­tin­guish be­tween var­i­ous classes of Unix sys­tems.

Ver­sion0.4a 2017-10-13
Li­censesThe Project Public Li­cense 1.3c
Main­tainerJo­hannes Gro├če
Will Robert­son
TDS archiveifplatform.tds.zip
Con­tained inTeX Live as if­plat­form
MiKTeX as if­plat­form
TopicsEn­vi­ron­ment query

Down­load the con­tents of this pack­age in one zip archive (152.7k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Pack­age Links

Guest Book Sitemap Contact Contact Author