[tex-live] New version of ifplatform
Heiko Oberdiek
oberdiek at uni-freiburg.de
Thu Sep 10 01:25:13 CEST 2009
On Wed, Sep 09, 2009 at 11:50:01PM +0930, Will Robertson wrote:
> The documentation has a line "This documentation was compiled on
> \platformname" which blows up if the \platform name is "CYGWIN_NT-5.1".
The string came from "uname"? Then either the catcodes can be
set to save values by reading the program output in a verbatim
manner. Or the result can be converted using LaTeX's
\@onelevel at sanitize or e-TeX's \detokenize, Example for the
latter:
\edef\platform{\detokenize\expandafter{\platform}}
Then the definition of the macro follows TeX's conventions
(\jobname, \meaning, \string, ...)
All characters have catcode 12 (other) with the exception
of the space with catcode 10 (space).
Yours sincerely
Heiko <oberdiek at uni-freiburg.de>
More information about the tex-live
mailing list