Re: [NTG-pdftex] Re: Patch ShellEscape
At 15:49 10/07/2003 +0200, Heiko Oberdiek wrote:
On Thu, Jul 10, 2003 at 02:57:25PM +0200, Martin Schroeder wrote:
On 2003-07-10 14:35:48 +0200, Martin Schröder wrote:
- New readonly primitive \pdfshellescape which can be used to test if the
Thinking further (and being reminded by Rolf): Is there a reason why this can _not_ be called \shellescape? It's got nothing to do with pdf (and would be usefull in all web2c-based TeX engines, no matter what they are called).
\write18 is a property of web2c-based TeX engines, so \shellescape is the better name and it would be even better, if this can be added to the other web2c-based TeX engines, too.
i have problems with the not that name compatible: \shellescape \write18 so if a dedicated name would be used, we would either have something: \shellescape{some command} \shellescapemode == number or (considering it a channel) \write18 \ifeof18 Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl 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 Sat, Jul 12, 2003 at 07:22:06PM +0200, Hans Hagen wrote:
i have problems with the not that name compatible:
\shellescape \write18
so if a dedicated name would be used, we would either have something:
\shellescape{some command} \shellescapemode == number
This would be the cleanest solution, without that magic nasty "18". But I fear, nobody will have the courage to extend standard TeX in this sense. An alternative for \shellescapemode could be a \if switch: \ifshellescape
or (considering it a channel)
\write18 \ifeof18
Yours sincerely
Heiko
At 19:23 13/07/2003 +0200, you wrote:
On Sat, Jul 12, 2003 at 07:22:06PM +0200, Hans Hagen wrote:
i have problems with the not that name compatible:
\shellescape \write18
so if a dedicated name would be used, we would either have something:
\shellescape{some command} \shellescapemode == number
This would be the cleanest solution, without that magic nasty "18". But I fear, nobody will have the courage to extend standard TeX in this sense.
An alternative for \shellescapemode could be a \if switch: \ifshellescape
or (considering it a channel)
\write18 \ifeof18
yet another option is to ask peter breitenlohner to add the \shell... commands to etex or if that does not happen, to add them as alternatives to pdftex (in addition to the \ifeof18's) and then discuss the option to add them to etex some time later (there are a few more pdftex features that may be interesting to move to etex) also, since i suppose that you need it for hyperref, you can use the pdftex version number (or just test for another new pdftex primitive that is introduced at the same time as \ifeof18); in a year from now we may expect users who use 'modern things' like write 18 to have updated anyway Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl 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 Sun, Jul 13, 2003 at 09:53:04PM +0200, Hans Hagen wrote:
yet another option is to ask peter breitenlohner to add the \shell... commands to etex or if that does not happen, to add them as alternatives to pdftex (in addition to the \ifeof18's) and then discuss the option to add them to etex some time later (there are a few more pdftex features that may be interesting to move to etex)
This can be a way to go.
also, since i suppose that you need it for hyperref, you can use the pdftex version number (or just test for another new pdftex primitive that is introduced at the same time as \ifeof18); in a year from now we may expect users who use 'modern things' like write 18 to have updated anyway
Not hyperref, but here are examples:
* pdftex.def/epstopdf.sty for conversion eps->pdf on the fly
* pdftricks relies on \write18.
In both cases the test of pdfTeX version number is enough.
For general use, example:
* running makeindex before \printindex
It would be useful, if the feature can be tested.
Yours sincerely
Heiko
participants (2)
-
Hans Hagen
-
Heiko Oberdiek