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
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
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
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/
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}
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
� 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
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,
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
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
10 matches
Mail list logo