From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80131 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Error markers for invalid section references Date: Mon, 07 Jan 2013 22:56:37 +0100 Message-ID: <50EB4495.2010601@wxs.nl> References: <20130107120235.GR11551@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1357595801 29232 80.91.229.3 (7 Jan 2013 21:56:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2013 21:56:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 22:56:58 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 1TsKgg-0004ox-CZ for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2013 22:56:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 985A11025F; Mon, 7 Jan 2013 22:56:38 +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 DbenUggNU1ry; Mon, 7 Jan 2013 22:56:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 071CE10217; Mon, 7 Jan 2013 22:56:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 09306101EE for ; Mon, 7 Jan 2013 22:56:36 +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 hd6+9X4Lo8eJ for ; Mon, 7 Jan 2013 22:56:35 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 2F398101E6 for ; Mon, 7 Jan 2013 22:56:35 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r07LkfP8007608 for ; Mon, 7 Jan 2013 22:46:42 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by pragma-net.nl (SurgeMail 6.1c) with ESMTP (TLS) id 2342-1713362 for ; Mon, 07 Jan 2013 22:56:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.2; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <20130107120235.GR11551@homerow> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIJ9KG53 - 65b762b14258 - 20130107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:80131 Archived-At: On 1/7/2013 1:02 PM, Marco Patzer wrote: > 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=no] > \starttext > > \startsectionlevel [title=Alpha] > See section \in[invalid]. \par %% prints ?? > See section \in[sec:bar]. \par %% prints nothing > See section \about[sec:bar]. %% correct reference > > \startsectionlevel [title=Foo] > \stopsectionlevel > \startsectionlevel [title=Bar, reference=sec: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? I'll print an !! although it might become optional at some point if I find that it has unwanted side effects. Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________