From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51578 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 08:56:40 +0200 Message-ID: <4A4DABA8.40906@elvenkind.com> References: <50d1c22d0907011118h2d75ed8cmc1ec557da4518b62@mail.gmail.com> <6faad9f00907021452x6fc29d16r84188d058e6bcc0@mail.gmail.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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246604309 11422 80.91.229.12 (3 Jul 2009 06:58:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 06:58:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 03 08:58:22 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 1MMciz-0005Ch-TP for gctc-ntg-context-518@m.gmane.org; Fri, 03 Jul 2009 08:58:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 95F591FBC6; Fri, 3 Jul 2009 08:58:20 +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 22979-05-4; Fri, 3 Jul 2009 08:57:36 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0346F1FB98; Fri, 3 Jul 2009 08:57:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4DB871FB6B for ; Fri, 3 Jul 2009 08:57:33 +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 22979-05-3 for ; Fri, 3 Jul 2009 08:56:54 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id D299A1FB71 for ; Fri, 3 Jul 2009 08:56:42 +0200 (CEST) Original-Received: from smtp-cloud1.xs4all.nl (smtp-cloud1.xs4all.nl [194.109.24.61]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5) with ESMTP id n636ueg6002315 for ; Fri, 3 Jul 2009 08:56:42 +0200 Authentication-Results: smtp-cloud1.xs4all.nl smtp.user=boo0; auth=pass (PLAIN) Original-Received: from [82.161.175.147] ([82.161.175.147:51148] helo=[192.168.178.26]) by smtp-cloud1.xs4all.nl (envelope-from ) (ecelerity 2.2.2.41 r(31179/31189)) with ESMTPA id D0/1F-08282-8ABAD4A4; Fri, 03 Jul 2009 08:56:40 +0200 User-Agent: Thunderbird 2.0.0.21 (X11/20090330) In-Reply-To: <6faad9f00907021452x6fc29d16r84188d058e6bcc0@mail.gmail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=194.109.24.61; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 254853744 - c6d413c41804 - 20090703 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:51578 Archived-At: 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. 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 ___________________________________________________________________________________