From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51584 Path: news.gmane.org!not-for-mail From: luigi scarso 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, 3 Jul 2009 09:30:23 +0200 Message-ID: References: <50d1c22d0907011118h2d75ed8cmc1ec557da4518b62@mail.gmail.com> <6faad9f00907021452x6fc29d16r84188d058e6bcc0@mail.gmail.com> <4A4DABA8.40906@elvenkind.com> <4A4DAFB9.9090102@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0310490743==" X-Trace: ger.gmane.org 1246606283 16746 80.91.229.12 (3 Jul 2009 07:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 07:31:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 03 09:31:17 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 1MMdEq-0008IL-PC for gctc-ntg-context-518@m.gmane.org; Fri, 03 Jul 2009 09:31:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E7FA71FC0B; Fri, 3 Jul 2009 09:31:14 +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 30291-01; Fri, 3 Jul 2009 09:30:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC4E51FB74; Fri, 3 Jul 2009 09:30:36 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 145C81FB74 for ; Fri, 3 Jul 2009 09:30:35 +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 29477-04 for ; Fri, 3 Jul 2009 09:30:27 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by ronja.ntg.nl (Postfix) with ESMTP id 9219B1FB5B for ; Fri, 3 Jul 2009 09:30:27 +0200 (CEST) Original-Received: from mail-bw0-f208.google.com (mail-bw0-f208.google.com [209.85.218.208]) by filter3-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n62B9DvT020665 for ; Thu, 2 Jul 2009 13:09:13 +0200 Original-Received: by bwz4 with SMTP id 4so176272bwz.2 for ; Fri, 03 Jul 2009 00:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=qi68kgbGzC4Snjb7s59hKkQ1GOwD57rHPbkNr7NYY8s=; b=ke1geT0rNVNj5ojlPRGHBC/6GwlMtAd4yId0C1POOC98pOQH709JO+k8h7Hi0Rlbhn mjISaO0rwdsqRB1bKBwss1YTuONMCzPb7gGcOdVEhYy2BOeRJxuIZZLrAOu/N62PvG0y XOClBQ6MfmaMXwuqDQa25BQZsmhAULQQhq/uI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=R3dq4gMCFilbICCR09KzE/rBGx0t4TvmHqmyELvy30Hr5TOHxJ2WfuhS5O2k651E5Z g5tvuX7W3a7xWX2gkK+lRJReaN3JNoW/1zxmT3LH6LIt+zgMffOJI5vZvnnSfRrZBr2B 1tGX0h74c4J4JqqYviJoiKom0V9lt3xvpz0aw= Original-Received: by 10.204.112.1 with SMTP id u1mr988460bkp.37.1246606223804; Fri, 03 Jul 2009 00:30:23 -0700 (PDT) In-Reply-To: <4A4DAFB9.9090102@elvenkind.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.208; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 254872248 - a7063cf8bf16 - 20090703 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:51584 Archived-At: --===============0310490743== Content-Type: multipart/alternative; boundary=0016e6d64515250b4a046dc821b3 --0016e6d64515250b4a046dc821b3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Fri, Jul 3, 2009 at 9:14 AM, Taco Hoekwater wrote: > > > 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) > we need something like a stack trace; also a lua "try/except" construct should be nice . -- luigi --0016e6d64515250b4a046dc821b3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Fri, Jul 3, 2009 at 9:14 AM, Taco Hoe= kwater <taco@elv= enkind.com> wrote:


luigi scarso wrote:
>
>
> On Fri, Jul 3, 2009 at 8:56 AM, Taco Hoekwater <taco@elvenkind.com
> <mailto:taco@elvenkind.com>> wrote:
>
> =C2=A0 =C2=A0 Mojca Miklavec wrote:
>
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Line Number
>
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 I don't know of any way, but TeX somet= imes complains on errors and
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 outputs the line number along.
>
>
> =C2=A0 =C2=A0 There is \inputlineno in TeX, so =C2=A0\the\inputlineno = or the lua
> =C2=A0 =C2=A0 equivalent \ctxlua{tex.inputlineno} will work.
>
> The problem is exactly locate the error in source .
> Sometimes the errorline =C2=A0of 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 pa= ragraphs
nor macros)
we need som= ething like a stack trace;
also a lua "try/except" construct = should be nice .
--
luigi

--0016e6d64515250b4a046dc821b3-- --===============0310490743== 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0310490743==--