From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68787 Path: news.gmane.org!not-for-mail From: Andreas Schneider Newsgroups: gmane.comp.tex.context Subject: Re: Validate (cross)references Date: Fri, 27 May 2011 17:19:30 +0200 Message-ID: <1213928373.20110527171930@gmx.de> References: <15410263440.20110527170442@gmx.de> <9969F0B4-6FAD-43E7-B58F-6923425027B6@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1306509620 20230 80.91.229.12 (27 May 2011 15:20:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 15:20:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 17:20:15 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QPyph-0007H7-Pe for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2011 17:20:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C9FBCADA6; Fri, 27 May 2011 17:20:09 +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 MU0x5hwSlgwn; Fri, 27 May 2011 17:20:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 361D6CAD94; Fri, 27 May 2011 17:20:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BD0AACAD94 for ; Fri, 27 May 2011 17:20:00 +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 WYFj-pVMeT0e for ; Fri, 27 May 2011 17:19:50 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 29051CAD8A for ; Fri, 27 May 2011 17:19:50 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p4RFJnFS019418 for ; Fri, 27 May 2011 17:19:49 +0200 Original-Received: (qmail invoked by alias); 27 May 2011 15:19:49 -0000 Original-Received: from p54B4ACF9.dip.t-dialin.net (EHLO [192.168.1.3]) [84.180.172.249] by mail.gmx.net (mp006) with SMTP; 27 May 2011 17:19:49 +0200 X-Authenticated: #2825193 X-Provags-ID: V01U2FsdGVkX19ES3AFuBdEzyyhjd5l31POSxUoHUYULLJx7+5ZKv XzNZRR4CNti9DD X-Priority: 3 (Normal) In-Reply-To: <9969F0B4-6FAD-43E7-B58F-6923425027B6@googlemail.com> X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.22; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06EMDjNeh - 11de48217b0f - 20110527 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:68787 Archived-At: On Friday, May 27, 2011 17:09 Wolfgang Schuster wrote: > Am 27.05.2011 um 17:04 schrieb Andreas Schneider: >> Hello, >> = >> if I use \in, \about, \at or anything else that generates a >> cross-reference, and that reference happens to be invalid (typo or >> whatever), it just prints out "nothing". Is there a way to have >> context throw an error if a reference is invalid? (That probably would >> only make sense in the second pass of context, since the first pass >> has to collect the references first.) > Unknown references are shown as =93??=94 in your text. > Wolfgang True, I was mostly thinking about "\about", which just prints two quotation marks and nothing in between. But my "problem" (if I can even call it that, since grep is already a solution, just maybe not the best one :D) is, that I could easily miss such small changes. I'm working on technical documentation that even has parts that are automatically generated (from XML files). I just update whatever is necessary (the document itself, or just the input files), commit them to SVN and our CI server grabs them, and runs ConTeXt. If ConTeXt returns with a return code > 0, the build is marked as "failed" and all necessary admins (me and my colleague) are informed via eMail and/or RSS feed. If the build succeeds, the generated PDF is automatically distributed to the users. I consider wrong references an error, so I would like the build to fail (imho referencing something that doesn't exist is like using a macro that doesn't exist, which fails too). But as I said: if context can't treat that as error, I'm fine with it too and will continue to grep the logfile. It's just curiosity if there may already be a setting/parameter/whatever to get context to be more "restrictive". -- = Best Regards, Andreas ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________