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.

Sources/macros/latex/contrib/ifplatform
Doc­u­men­ta­tion
Re­pos­i­toryhttps://github.com/wspr/will2e
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

Load­ing...

An­nounce­ments

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

more

Pack­age Links

Guest Book Sitemap Contact Contact Author