Settings Help
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

ifplatform – Conditionals to test which platform is being used

This pack­age uses the (La)TeX 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
Doc­u­men­ta­tion
Ver­sion0.4
Li­censeThe LaTeX Project Public Li­cense
Copy­right2007-2010 Will Robert­son and Jo­hannes Große
Main­tainerWill Robert­son
Jo­hannes Große
TDS archiveifplatform.tds.zip
Con­tained inTeXLive as if­plat­form
MiKTeX as if­plat­form
Topics ex­am­ine the TeX pro­gram­ming en­vi­ron­ment

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

Guest Book Sitemap Contact 2014-04-20 12:51 CEST