From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51583 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: How to Determine the Current File Name and Line Number AND PAGE NUMBER in the ConTeXt Source? Date: Fri, 03 Jul 2009 09:14:01 +0200 Message-ID: <4A4DAFB9.9090102@elvenkind.com> References: <50d1c22d0907011118h2d75ed8cmc1ec557da4518b62@mail.gmail.com> <6faad9f00907021452x6fc29d16r84188d058e6bcc0@mail.gmail.com> <4A4DABA8.40906@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246605302 14133 80.91.229.12 (3 Jul 2009 07:15:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 07:15:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 03 09:14:55 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MMcz1-00024L-Kv for gctc-ntg-context-518@m.gmane.org; Fri, 03 Jul 2009 09:14:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BBEF71FC36; Fri, 3 Jul 2009 09:14:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29941-01; Fri, 3 Jul 2009 09:14:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 18B961FB7E; Fri, 3 Jul 2009 09:14:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA1BA1FB7E for ; Fri, 3 Jul 2009 09:14:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29231-04-2 for ; Fri, 3 Jul 2009 09:14:02 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 3C5281FB6B for ; Fri, 3 Jul 2009 09:14:02 +0200 (CEST) Original-Received: from plane.elvenkind.com (elvenknd.xs4all.nl [82.95.203.226]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n637E1Ar016163 for ; Fri, 3 Jul 2009 09:14:01 +0200 Original-Received: from glenlivet.elvenkind.com (glenlivet.elvenkind.com [10.10.0.6]) by plane.elvenkind.com (Postfix) with ESMTP id 568718026A22 for ; Fri, 3 Jul 2009 09:14:01 +0200 (CEST) User-Agent: Thunderbird 2.0.0.21 (X11/20090319) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=82.95.203.226; country=NL; region=11; city=Rotterdam; latitude=51.9167; longitude=4.5000; http://maps.google.com/maps?q=51.9167,4.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 254863844 - 12f01c144c67 - 20090703 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51583 Archived-At: luigi scarso wrote: > > > On Fri, Jul 3, 2009 at 8:56 AM, Taco Hoekwater > wrote: > > Mojca Miklavec wrote: > > > Line Number > > I don't know of any way, but TeX sometimes complains on errors and > outputs the line number along. > > > There is \inputlineno in TeX, so \the\inputlineno or the lua > equivalent \ctxlua{tex.inputlineno} will work. > > The problem is exactly locate the error in source . > Sometimes the errorline of the log are in someway imprecise , ie. "the > errors is (are) > around here " . Yeah, that can't be helped (unless you don't do multi-line paragraphs nor macros) Best wishes, Taco ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________