![](https://secure.gravatar.com/avatar/7325514c8a7b377b86d86ad29d35e8ef.jpg?s=120&d=mm&r=g)
30 Oct
2010
30 Oct
'10
11:04 p.m.
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 \showmessage\??externalfilter??{forbidden}\getexternalfilterdirectory \batchmode \normalend}
Well, the first thought that came in my mind is using os.exit(1): \def\ERROR{\directlua{os.exit(1)}} But since this is pretty obvious, I'm sure I'm missing something. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer