From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80113 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Error markers for invalid section references Date: Mon, 7 Jan 2013 13:02:35 +0100 Message-ID: <20130107120235.GR11551@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0997759611==" X-Trace: ger.gmane.org 1357560175 3914 80.91.229.3 (7 Jan 2013 12:02:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2013 12:02:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 13:03:12 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 1TsBQ2-0004Z4-Im for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2013 13:03:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF351101F0; Mon, 7 Jan 2013 13:02:50 +0100 (CET) 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 8foPScLEKliY; Mon, 7 Jan 2013 13:02:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8E471101E5; Mon, 7 Jan 2013 13:02:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 95796101E5 for ; Mon, 7 Jan 2013 13:02:48 +0100 (CET) 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 wwmre9bAOO8d for ; Mon, 7 Jan 2013 13:02:47 +0100 (CET) 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 8898E101E2 for ; Mon, 7 Jan 2013 13:02:47 +0100 (CET) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r07C2fhX026830 for ; Mon, 7 Jan 2013 13:02:42 +0100 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id C8AEF11BC1F for ; Mon, 7 Jan 2013 06:02:40 -0600 (CST) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id M4GLQUGGO3BM for ; Mon, 07 Jan 2013 06:02:40 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=mLxV5UeFQkK3oOmylI1+ymptCUNoUYsLVSIzANIY1PVVtePsbvJ31HSzIMlrYxPWweXamyZcvZ8DJaRzAezGfTr5mD4yHTi4IekBDQIwM+sC28cazSQhAf06++Nf8db7deGdU7r9IOf1cWAnBgHtvBrLpqnhg5NwkhYyKaQy+fI=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent; Mail-Followup-To: mailing list for ConTeXt users 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: 0TIJ02F7G - 4f122877ee33 - 20130107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:80113 Archived-At: --===============0997759611== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="phbq2bkSb+hZnunM" Content-Disposition: inline --phbq2bkSb+hZnunM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, in the final stage of a document I always run a grep for ?? and xxxx on the document to find invalid references and missing bibliography entries. However, in documents that do not have a section number the references to the number are also wrong, they need to be references to the name instead of the number. In this case no error marker is printed and AFAIK not even a hint in the log file. The correct way is to use \about instead of \in. Here's an example: \setuphead [section] [number=3Dno] \starttext \startsectionlevel [title=3DAlpha] See section \in[invalid]. \par %% prints ?? See section \in[sec:bar]. \par %% prints nothing See section \about[sec:bar]. %% correct reference =20 \startsectionlevel [title=3DFoo] \stopsectionlevel \startsectionlevel [title=3DBar, reference=3Dsec:bar] \stopsectionlevel \stopsectionlevel \stoptext The wrong \in[invalid] reference receives an easy to find error marker and an entry in the log file. The wrong entry \in[sec:bar] is hard to find. Is there a way to add ?? for those cases as well? Marco --phbq2bkSb+hZnunM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJQ6rlbAAoJEPGqVaNSn0iKfpUH/3MGtl5ZaGjIDL7PADtIrl5l ao93SNcAe6JIumNqC3Xx30TohdVwUD9Idwr0VWqv5Ymjh7RURQUuKaACRo/ovI3I NNhVJwTRqJY0vFbJxqHmrADr55EXuDPqZuRbdw3yyVO2LFB81RTUnwtMVsrGNTi1 dc+IYw4GLUsWeB67tH4hIUtzuKhT559++CwwzEg8NA2mJ7/FoFwPrtSPZGACC20/ LWVS1wKDZrIiNNSFW/zvOHuMrhiinwL5HuL0ja1Mc8IfgdeEXkINM1VwYaTUjiW8 +Ky//H7i9It5r4sT+KcMcH6wCYZpY7QKfqwav1fEwL8ucO4pAYN0x6y1TPIYf+E= =vruP -----END PGP SIGNATURE----- --phbq2bkSb+hZnunM-- --===============0997759611== 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 ___________________________________________________________________________________ --===============0997759611==--