Re: [NTG-context] \ifshellescape

2006-12-27 Thread Hans Hagen
Mojca Miklavec wrote: On 12/26/06, Hans Hagen wrote: core-job.tex:\ifx\pdfshellescape\undefined \else core-job.tex:\chardef\systemcommandmode \ifcase\pdfshellescape \plusone \else \plustwo \fi so \systemcommandmode is your friend What exactly is the advantage of using

[NTG-context] \ifshellescape

2006-12-26 Thread Mojca Miklavec
Hello, is there any command to test for write18/shell escape available in ConTeXt? In one of the LaTeX packages I saw: \newif\ifShellEscape ... \ifShellEscape \def\tmpfile{/tmp/w18-test-\the\year\the\month\the\day\the\time} \ifmiktex \immediate\write18{rem \tmpfile} \else

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Aditya Mahajan
On Tue, 26 Dec 2006, Mojca Miklavec wrote: Hello, is there any command to test for write18/shell escape available in ConTeXt? \ifeof18 checks if write18 is disabled. I think that it is etex only. The next method is error prone, for a lot of reasons, the directory /tmp may not exist

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Peter Münster
On Tue, 26 Dec 2006, Mojca Miklavec wrote: is there any command to test for write18/shell escape available in ConTeXt? There is such a command in pdfTeX-1.40 but I don't remember the name (I think it's \ifshellescape). Cheers, Peter -- http://pmrb.free.fr/contact/

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Henning Hraban Ramm
Am 2006-12-26 um 19:57 schrieb Peter Münster: is there any command to test for write18/shell escape available in ConTeXt? There is such a command in pdfTeX-1.40 but I don't remember the name (I think it's \ifshellescape). \ifeof18 From the t-lilypond sources: %D If \type{\ifeof18}

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Martin Schröder
2006/12/26, Peter Münster [EMAIL PROTECTED]: There is such a command in pdfTeX-1.40 but I don't remember the name (I think it's \ifshellescape). It's new in 1.30: - \pdfshellescape is a read-only integer that is 1 if \write18 is enabled, 0 otherwise. Best Martin

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Hans Hagen
� wrote: On Tue, 26 Dec 2006, Mojca Miklavec wrote: is there any command to test for write18/shell escape available in ConTeXt? There is such a command in pdfTeX-1.40 but I don't remember the name (I think it's \ifshellescape). Cheers, Peter grep shellescape *.tex

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Mojca Miklavec
On 12/26/06, Hans Hagen wrote: Peter Münster wrote: On Tue, 26 Dec 2006, Mojca Miklavec wrote: is there any command to test for write18/shell escape available in ConTeXt? There is such a command in pdfTeX-1.40 but I don't remember the name (I think it's \ifshellescape). Cheers,

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Martin Schröder
2006/12/26, Mojca Miklavec [EMAIL PROTECTED]: Wait! So many alternatives that I'll have to create another function to choose one of them randomly ;) pdftex 1.30 has functions for random numbers. :-) Best Martin ___ ntg-context mailing list

Re: [NTG-context] \ifshellescape

2006-12-26 Thread Mojca Miklavec
On 12/26/06, Hans Hagen wrote: core-job.tex:\ifx\pdfshellescape\undefined \else core-job.tex:\chardef\systemcommandmode \ifcase\pdfshellescape \plusone \else \plustwo \fi so \systemcommandmode is your friend What exactly is the advantage of using \pdfshellescape over \ifeof18 as the