From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77682 Path: news.gmane.org!not-for-mail From: Tobias Mueller Newsgroups: gmane.comp.tex.context Subject: Throwing an error on missing image with \externalfigure Date: Tue, 31 Jul 2012 14:18:30 +0200 Message-ID: <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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343804779 16817 80.91.229.3 (1 Aug 2012 07:06:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Aug 2012 07:06:19 +0000 (UTC) To: NTG-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 01 09:06:20 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 1SwT0c-00022r-L2 for gctc-ntg-context-518@m.gmane.org; Wed, 01 Aug 2012 09:06:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1A0411027D; Wed, 1 Aug 2012 09:06:18 +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 OFU9hIVQgS4I; Wed, 1 Aug 2012 09:06:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6A76410217; Wed, 1 Aug 2012 09:06:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7843710213 for ; Tue, 31 Jul 2012 14:18:33 +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 a2J4H0O3tb93 for ; Tue, 31 Jul 2012 14:18:32 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 241771020A for ; Tue, 31 Jul 2012 14:18:32 +0200 (CEST) Original-Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6VCIU1N008515 for ; Tue, 31 Jul 2012 14:18:31 +0200 Original-Received: by mail.cryptobitch.de (Postfix, from userid 1000) id CE60A5A7A54; Tue, 31 Jul 2012 14:18:30 +0200 (CEST) Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=88.198.7.68; country=DE; region=02; city=Nurnberg; latitude=49.4478; longitude=11.0683; http://maps.google.com/maps?q=49.4478,11.0683&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0THF0ivXu - 69ee7e1e8df9 - 20120731 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Mailman-Approved-At: Wed, 01 Aug 2012 09:06:10 +0200 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:77682 Archived-At: 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. 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? Cheers, Tobi ___________________________________________________________________________________ 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 ___________________________________________________________________________________