On Tue, Feb 17, 2004 at 03:09:53PM +0100, Hans Hagen wrote:
At 14:58 17/02/2004, Heiko Oberdiek wrote:
On Tue, Feb 17, 2004 at 10:57:10AM +0100, Hans Hagen wrote:
How about adding
\pdfbinary == number (0=unknown, 1=web2c, 2=miktex)
sometimes this is handy to know
What number does a official unknown distribution (eg. 100+) get? What number in case of a private modification of web2c?
the main reason for this feature is that one sometimes needs to know if one runs in a kpse environment or not, not so much feature testing; currently there is no way to find out if web2c/miktex is used (without reverting to write18, and even then it's not fail safe); since it's meant for macro packages that keep up to date, i see no problem with updates and private modifications, but i can imagine a range, say 1000-1999 for fundamental web2c changes, 2000-2999 for miktex, etc
I can provide a primitive that return a string saying something similar to the banner, ie: pdfTeX (Web2C 7.5.2) 3.141592-1.11c-beta-20040208 kpathsea version 3.5.2 so one can parse the string to see whether web2c is being used. other tex implementators can (should) change this string according to the current implementation. Let me know your ideas. Thanh