From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81849 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: Detecting reference-errors Date: Wed, 17 Apr 2013 12:55:29 +0200 Message-ID: <20130417105529.GP5709@homerow> References: <516E7A50.9020406@mmnetz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1462301652==" X-Trace: ger.gmane.org 1366196141 30600 80.91.229.3 (17 Apr 2013 10:55:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Apr 2013 10:55:41 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 17 12:55:45 2013 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 1USQ1g-0007g7-Ux for gctc-ntg-context-518@m.gmane.org; Wed, 17 Apr 2013 12:55:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2ED8E101EA; Wed, 17 Apr 2013 12:55:44 +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 BOWDwknZ+-yC; Wed, 17 Apr 2013 12:55:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3FA8E101E6; Wed, 17 Apr 2013 12:55:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 33C65101E6 for ; Wed, 17 Apr 2013 12:55:39 +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 WHMRLl7f9VWh for ; Wed, 17 Apr 2013 12:55:35 +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 489D2101E4 for ; Wed, 17 Apr 2013 12:55:34 +0200 (CEST) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3HAtWm7031825 for ; Wed, 17 Apr 2013 12:55:33 +0200 Original-Received: from d.earth.lavabit.com (d.earth.lavabit.com [192.168.111.13]) by karen.lavabit.com (Postfix) with ESMTP id E157311BCC2 for ; Wed, 17 Apr 2013 05:55:31 -0500 (CDT) Original-Received: from homerow (miun114-12.dynamic.miun.se [193.10.114.12]) by lavabit.com with ESMTP id 3DIRPL9JGT36 for ; Wed, 17 Apr 2013 05:55:31 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=wniR7/ni6ypFm5tJ8W9vj6o6lQp/+pjqe86O9qkJZPPZkGH6b0g2akyJ7luFwLOUn2uKmmSvL9+y8GMuzpnveIOwlGNjhBkmdWhv4OarZiTzVtCRbtjOS4ppIQ/LQ2rVVZRNaz6pELSZlZOMopTMgu8iiUz+9CIE1u2ttdxSqBM=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; Mail-Followup-To: ntg-context@ntg.nl In-Reply-To: <516E7A50.9020406@mmnetz.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75204; latitude=32.8019; longitude=-96.7883; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8019,-96.7883&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03JoWTxNJ - 90aea1dd6b36 - 20130417 (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:81849 Archived-At: --===============1462301652== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s7VmGO2m7mcnuX8Q" Content-Disposition: inline --s7VmGO2m7mcnuX8Q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2013=E2=80=9304=E2=80=9317 "H. =C3=96zoguz" wrote: > With \at[ref] one can get the pagenumber of a reference. If this > reference is not there (maybe in another file, not included at that > moment) there is no error given, but two question marks ??. > That is of course useful, but what if I WANT an error? Because that > is the only fast way to detect typing errors in references. ConTeXt requires multiple passes to get the references right, which means the first run would always fail if missing references trigger an error and should be delayed to the second run. Seems possible, though. I use the following command to detect wrong references. It's not pretty, but it does it's job reasonably well. pdftotext - | grep -E '\?\?|!!' Marco --s7VmGO2m7mcnuX8Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRbn+hAAoJEPGqVaNSn0iKA10IAIohaPiTGvL6S/On470P49Nt XW4rLqAZZhyvubSB62iv9TVOtG3ew67EdUh9Vg08DDCW2yGERerP/X0nVt5LRg3Y rqxzxGcQymusHpkigzvEX3mCwJAhi2i+z1jT96xb63vzjNIWL/iIN+E6Z/V43IS9 CBuE/URe5lrJm2WY+B1Gw0Nb8l1EfhRvALqFsSUE5iNHBE8uBv5bwpgkVniGlz4z a7USlcKB6+8DN+rfdj/ZmQJKFx+L36Fih1/6NZGBg9RwDOdHzcbm4XZ6Kr5LxYqo GJhq82JqyX74qPGNImiZbinUolCZo2Vou8/cKhipyaT8J1lIsDAFuJ2ae4U9Ku0= =PwpN -----END PGP SIGNATURE----- --s7VmGO2m7mcnuX8Q-- --===============1462301652== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1462301652==--