On 31-7-2012 14:18, Tobias Mueller wrote:
Hi :-)
I'd like ConTeXt to raise an error if it can't find an image when using \externalfigure. I really don't want to check a potentially big document for missing images manually and while I could grep the log myself in an additional post processing step, I really want ConTeXt to do raise the error for me, not a potentially broken script written by me.
often in the process of writing a missing (pending ) image is no reason for an abort
I've seen the other thread: http://www.ntg.nl/pipermail/ntg-context/2011/059485.html but there is no answer there. I also expected a similar behaviour to "\input" which fails on a non existing file. My thinking was that there is either a switch for "context", i.e. like "-Werror" or a way to set context up from within the document, i.e. by telling it to be in a "final" mode.
So my question is: How can I make ConTeXt raise an error on a non found image?
Currently it's not possible. In fact, it would involve more checks then, like missing references or so. It then would be some special mode and aborting a run would also mean that the partial pdf should be removed. So, it's a bit more work than just a few lines. Maybe later this year. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------