[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] Making a verbatim file for another language

2006-12-26 Thread Henning Hraban Ramm
Am 2006-12-25 um 11:38 schrieb Taco Hoekwater: There a few definition files already there, and you should start from the one that is closest to the language you want to define (especially wrt comment and string syntax). ... Good luck, Taco I found that interesting and wikified it at http://

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] Making a verbatim file for another language

2006-12-26 Thread Mojca Miklavec
On 12/26/06, Henning Hraban Ramm wrote: Am 2006-12-25 um 11:38 schrieb Taco Hoekwater: There a few definition files already there, and you should start from the one that is closest to the language you want to define (especially wrt comment and string syntax). ... Good luck, Taco I

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] Making a verbatim file for another language

2006-12-26 Thread cormullion
After looking at these files a bit more closely, I decided I didn't have a week to spare. Too much to learn and too few instructions. For now I'm sticking with plain old black verbatim code listings. Sometimes one has to set one's sights a little lower...! :-) But thanks again.

Re: [NTG-context] new debian context 2006.12.21-0.1

2006-12-26 Thread Hans Hagen
Hans van der Meer wrote: On Dec 24, 2006, at 0:21, Sanjoy Mahajan wrote: ConText is developed rapidly, ... and illustrates the free- software philosophy of release often, sometimes twice a day! ( my emphasis here, hvdm) I wouldn't stress that fact in this manner. And at the

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

[NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Sanjoy Mahajan
I just noticed this test file failing: \starttext $f'(x)$ \startformula f^\prime(x)\quad f'(x) \stopformula \stoptext It gives: ! Undefined control sequence. l.4 f^\prime(x)\quad f' (x) As you can see from lack of complaint about $f'(x)$, the ' still works in inline math

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

[NTG-context] shading with stitching functions

2006-12-26 Thread Mojca Miklavec
Hello, I'm still trying to get shading in MetaPost as the one in the attached eps file, but I don't manage to decipher the way how other shandings are done. There's a .tex file attached with a failed (hardcoded) example tries ... but I don't know where to explore further. I would appreciate

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

Re: [NTG-context] Installing Cyrillic font

2006-12-26 Thread Vyatcheslav Yatskovsky
I am sorry to say that this really looks like the INF of the standard Times-Roman font that does not have cyrillic glyphs (and the same was true of your log file). Yes, Taco, you are right. I was muddled by Extensis Suitcase which displayed Cyrillic text in a font preview mode (probably,

Re: [NTG-context] Installing Cyrillic font

2006-12-26 Thread Mojca Miklavec
On 12/26/06, Vyatcheslav Yatskovsky wrote: I am sorry to say that this really looks like the INF of the standard Times-Roman font that does not have cyrillic glyphs (and the same was true of your log file). Yes, Taco, you are right. I was muddled by Extensis Suitcase which displayed

[NTG-context] Fwd: Re[2]: Installing Cyrillic font

2006-12-26 Thread Vyatcheslav Yatskovsky
I might have missed the point completely, but do you set the file encoding anywhere, such as \enableregime[cp1251] (= windows-1251) anywhere? I didn't try your examples, but unless you set this somewhere cyrilic glyphs unlikely to work properly. Thank you, Mojca. No, I didn't set the

Re: [NTG-context] Installing Cyrillic font

2006-12-26 Thread Vyatcheslav Yatskovsky
I might have missed the point completely, but do you set the file encoding anywhere, such as \enableregime[cp1251] (= windows-1251) anywhere? I didn't try your examples, but unless you set this somewhere cyrilic glyphs unlikely to work properly. Thank you, Mojca. No, I didn't set the

Re: [NTG-context] Installing Cyrillic font

2006-12-26 Thread Mojca Miklavec
On 12/27/06, Vyatcheslav Yatskovsky wrote: I might have missed the point completely, but do you set the file encoding anywhere, such as \enableregime[cp1251] (= windows-1251) anywhere? I didn't try your examples, but unless you set this somewhere cyrilic glyphs unlikely to work properly.

Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Zhichu Chen
Hi Aditya, I've copied your codes and replaced the original ones with them, but I failed when I make the formats: texexec --make --all It gives me the following message: ---

Re: [NTG-context] ' undefined inside \startformula .. \stopformula

2006-12-26 Thread Aditya Mahajan
On Wed, 27 Dec 2006, Zhichu Chen wrote: Hi Aditya, I've copied your codes and replaced the original ones with them, but I failed when I make the formats: texexec --make --all It gives me the following message: ---