Re: [NTG-context] Stop with an error signal

2010-10-31 Thread Wolfgang Schuster
Am 31.10.2010 um 01:27 schrieb Aditya Mahajan: > Hi, > > I want to write a macro that checks for some settings and if the settings are > wrong stop the current compilation and terminate with an error message. Right > now I have > > \def\ERROR > {\writeline > \showmessage\??external

Re: [NTG-context] Stop with an error signal

2010-10-30 Thread Aditya Mahajan
On Sun, 31 Oct 2010, Khaled Hosny wrote: On Sun, Oct 31, 2010 at 01:08:40AM -0400, Aditya Mahajan wrote: On Sun, 31 Oct 2010, Khaled Hosny wrote: On Sat, Oct 30, 2010 at 07:27:02PM -0400, Aditya Mahajan wrote: Hi, I want to write a macro that checks for some settings and if the settings are

Re: [NTG-context] Stop with an error signal

2010-10-30 Thread Khaled Hosny
On Sun, Oct 31, 2010 at 01:08:40AM -0400, Aditya Mahajan wrote: > On Sun, 31 Oct 2010, Khaled Hosny wrote: > > >On Sat, Oct 30, 2010 at 07:27:02PM -0400, Aditya Mahajan wrote: > >>Hi, > >> > >>I want to write a macro that checks for some settings and if the > >>settings are wrong stop the current

Re: [NTG-context] Stop with an error signal

2010-10-30 Thread Aditya Mahajan
On Sun, 31 Oct 2010, Khaled Hosny wrote: On Sat, Oct 30, 2010 at 07:27:02PM -0400, Aditya Mahajan wrote: Hi, I want to write a macro that checks for some settings and if the settings are wrong stop the current compilation and terminate with an error message. Right now I have \def\ERROR

Re: [NTG-context] Stop with an error signal

2010-10-30 Thread Khaled Hosny
On Sat, Oct 30, 2010 at 07:27:02PM -0400, Aditya Mahajan wrote: > Hi, > > I want to write a macro that checks for some settings and if the > settings are wrong stop the current compilation and terminate with > an error message. Right now I have > > \def\ERROR > {\writeline >\showmes

Re: [NTG-context] Stop with an error signal

2010-10-30 Thread Aditya Mahajan
On Sun, 31 Oct 2010, Aditya Mahajan wrote: How can I force context (the macro package) to exit with a status of 1 so that context (the program) does not attempt a second compilation? Adding \errmessage{} before \normalend changes the error code to 1. Aditya ___

Re: [NTG-context] Stop with an error signal

2010-10-30 Thread Aditya Mahajan
On Sun, 31 Oct 2010, Wolfgang Schuster wrote: Am 31.10.2010 um 01:27 schrieb Aditya Mahajan: Hi, I want to write a macro that checks for some settings and if the settings are wrong stop the current compilation and terminate with an error message. Right now I have \def\ERROR {\writeli

Re: [NTG-context] Stop with an error signal

2010-10-30 Thread Wolfgang Schuster
Am 31.10.2010 um 01:27 schrieb Aditya Mahajan: > Hi, > > I want to write a macro that checks for some settings and if the settings are > wrong stop the current compilation and terminate with an error message. Right > now I have > > \def\ERROR > {\writeline > \showmessage\??external

[NTG-context] Stop with an error signal

2010-10-30 Thread Aditya Mahajan
Hi, I want to write a macro that checks for some settings and if the settings are wrong stop the current compilation and terminate with an error message. Right now I have \def\ERROR {\writeline \showmessage\??externalfilter??{forbidden}\getexternalfilterdirectory \batchmod