Hi, How about adding \pdfbinary == number (0=unknown, 1=web2c, 2=miktex) sometimes this is handy to know Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE/POD/CTS Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Tue, Feb 17, 2004 at 10:57:10AM +0100, Hans Hagen wrote:
Hi,
How about adding
\pdfbinary == number (0=unknown, 1=web2c, 2=miktex)
sometimes this is handy to know
I think this is not pdftex-related at all. To make it work, tex implementors (tetex, miktex, vtex, oztex etc.) must come up with some generic solution. For example, how can I find out that miktex is being used? Thanh
At 12:49 17/02/2004, The Thanh Han wrote:
On Tue, Feb 17, 2004 at 10:57:10AM +0100, Hans Hagen wrote:
Hi,
How about adding
\pdfbinary == number (0=unknown, 1=web2c, 2=miktex)
sometimes this is handy to know
I think this is not pdftex-related at all. To make it work, tex implementors (tetex, miktex, vtex, oztex etc.) must come up with some generic solution.
I think that we should not be too optimistic in getting things into good old tex unless we start providing extensions not prefixed by \pdf ... \TeXbinaryversion is ok for; we only need to register the numbers so that we don't get clashes. Since on the next tex-live pdfetex will be the default engine for everything, this is the chance to sort out these things. Same for \timehours \timeminutes \timeseconds \timemiliseconds which return the current (more precise) time, and a few more things ... Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE/POD/CTS Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
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?
Perhaps it is better to have tests for the features instead,
independently of the distribution (shell escape, ...).
Yours sincerely
Heiko
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 Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE/POD/CTS Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
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
At 06:01 18/02/2004, The Thanh Han wrote:
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
Sounds ok to me \pdfbannerstring Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE/POD/CTS Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On 2004-02-18 08:51:06 +0100, Hans Hagen wrote:
At 06:01 18/02/2004, The Thanh Han wrote:
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
Sounds ok to me
\pdfbannerstring
Any progress on this? Best regards Martin -- Martin Schröder, ms@artcom-gmbh.de ArtCom GmbH, Lise-Meitner-Str 5, 28359 Bremen, Germany Voice +49 421 20419-44 / Fax +49 421 20419-10 http://www.artcom-gmbh.de
At 15:38 12/03/2004, Martin Schröder wrote:
On 2004-02-18 08:51:06 +0100, Hans Hagen wrote:
At 06:01 18/02/2004, The Thanh Han wrote:
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
Sounds ok to me
\pdfbannerstring
Any progress on this?
afaik thanh has implemented this Hans
participants (4)
-
Hans Hagen
-
Heiko Oberdiek
-
Martin Schröder
-
The Thanh Han