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.

Sources /macros/latex/contrib/ifplatform
Re­pos­i­tory https://github.com/wspr/if­plat­form
Ver­sion 0.4a 2017-10-13
Li­cense The Project Public Li­cense 1.3c
Copy­right 2007–2017 Will Robert­son and Jo­hannes Große
Main­tainer Jo­hannes Große
Will Robert­son
TDS archive ifplatform.tds.zip
Con­tained in TeX Live as if­plat­form
MiKTeX as if­plat­form
Topics ex­am­ine the pro­gram­ming en­vi­ron­ment

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.


Guest Book Sitemap Contact Contact Author