From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77919 Path: news.gmane.org!not-for-mail From: Tobias Mueller Newsgroups: gmane.comp.tex.context Subject: Re: Throwing an error on missing image with \externalfigure Date: Fri, 17 Aug 2012 11:11:50 +0200 Message-ID: <20120817091150.GL30149@cryptobitch.de> References: <20120731121830.GB26275@cryptobitch.de> <5018DF68.8050704@wxs.nl> 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: ger.gmane.org 1345194719 7175 80.91.229.3 (17 Aug 2012 09:11:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2012 09:11:59 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 17 11:11:59 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 1T2Ib0-0003T7-9K for gctc-ntg-context-518@m.gmane.org; Fri, 17 Aug 2012 11:11:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F4A110216; Fri, 17 Aug 2012 11:11:57 +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 wcEsjxr8J14U; Fri, 17 Aug 2012 11:11:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 294D1101EE; Fri, 17 Aug 2012 11:11:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A53E4101EE for ; Fri, 17 Aug 2012 11:11:52 +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 U+aKYtxHL2UA for ; Fri, 17 Aug 2012 11:11:51 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id C8AF2101E5 for ; Fri, 17 Aug 2012 11:11:51 +0200 (CEST) Original-Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q7H9BoeE032124 for ; Fri, 17 Aug 2012 11:11:51 +0200 Original-Received: by mail.cryptobitch.de (Postfix, from userid 1000) id 9F0165A8C1A; Fri, 17 Aug 2012 11:11:50 +0200 (CEST) Content-Disposition: inline In-Reply-To: <5018DF68.8050704@wxs.nl> 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: 08HLJbOML - ac9480497fa0 - 20120817 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:77919 Bonjour :) On Wed, Aug 01, 2012 at 09:48:56AM +0200, Hans Hagen wrote: > On 31-7-2012 14:18, Tobias Mueller wrote: > > 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 > Hm. I consider it a serious and fatal error if I requested an image to be included and it not being available. I would want to know how much space the image occupies, where it is placed, whether it makes words wrap correctly. And that's only in the development process of document. During "deployment" it is a much bigger problem for me. I use to generate my documents on a server (i.e. after committing to my favourite version control system) and have them automatically published. Obviously, I want the document generated by the server to look the very same. And I am very good at accidentally not checking in dependencies to my VCS. So the server side might in fact lack the necessary images. And I wouldn't want to embarras myself by having a document missing images. So a failure in the build process would help me a lot. > > So my question is: How can I make ConTeXt raise an error on a non found image? > > Currently it's not possible. Too sad. Looking forward to later this year then. > aborting a run would also mean that the partial pdf should be removed. I don't think it is necessary. Just having the program not returning a 0 exit code would help at least me for now. 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 ___________________________________________________________________________________