From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77685 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Throwing an error on missing image with \externalfigure Date: Wed, 01 Aug 2012 09:48:56 +0200 Message-ID: <5018DF68.8050704@wxs.nl> References: <20120731121830.GB26275@cryptobitch.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343807346 3665 80.91.229.3 (1 Aug 2012 07:49:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 07:49:06 +0000 (UTC) Cc: Tobias Mueller To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 01 09:49:06 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SwTg1-0002mT-4Z for gctc-ntg-context-518@m.gmane.org; Wed, 01 Aug 2012 09:49:05 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 37AE010206; Wed, 1 Aug 2012 09:49:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id auoz-AdvNcmm; Wed, 1 Aug 2012 09:49:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B79931020A; Wed, 1 Aug 2012 09:49:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27A101020A for ; Wed, 1 Aug 2012 09:49:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dACiMwjpatwU for ; Wed, 1 Aug 2012 09:49:01 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 3C87D10206 for ; Wed, 1 Aug 2012 09:49:01 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q717mxP3023377 for ; Wed, 1 Aug 2012 09:48:59 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 1163-1713362 for multiple; Wed, 01 Aug 2012 09:48:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <20120731121830.GB26275@cryptobitch.de> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03HFjMXw9 - 2ed402c49f59 - 20120801 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77685 Archived-At: 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________