From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51580 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:05:47 +0200 Message-ID: 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: multipart/mixed; boundary="===============1377678130==" X-Trace: ger.gmane.org 1246604808 12816 80.91.229.12 (3 Jul 2009 07:06:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2009 07:06:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 03 09:06:41 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 1MMcr3-0007lO-5p for gctc-ntg-context-518@m.gmane.org; Fri, 03 Jul 2009 09:06:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 377EA1FBF9; Fri, 3 Jul 2009 09:06:40 +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 29243-02; Fri, 3 Jul 2009 09:05:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C7C7E1FB7E; Fri, 3 Jul 2009 09:05:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 901CB1FB7E for ; Fri, 3 Jul 2009 09:05:57 +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 22982-06-2 for ; Fri, 3 Jul 2009 09:05:49 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id C0C861FB74 for ; Fri, 3 Jul 2009 09:05:48 +0200 (CEST) Original-Received: from mail-bw0-f208.google.com (mail-bw0-f208.google.com [209.85.218.208]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6375l1j012795 for ; Fri, 3 Jul 2009 09:05:48 +0200 Original-Received: by bwz4 with SMTP id 4so163819bwz.2 for ; Fri, 03 Jul 2009 00:05:47 -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=0oZI6poX1R6rWsOrZAISfWCf7z5q/Pvv1Tvkw5YPeTw=; b=lttfL3uhlv3q+4SP32LDWlGuthy0TpIR/vO27GhujkoYcdRjIFad/idjvvk3pwSSNp T3rAW/EYi8LEqaj9BMXooLSwBZF3l5nSC0NNEP2cbhE6YqGyVZCqTwcxEvM558rL8y5s wMNz5cAa9pO4j7FVvtmPO3RqfrxRuUJ17xZyI= 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=aiABwYf0bcNZ48o8GAzyv1Yqgg8ncWnuurXX9oZX/eDUjMBTxSE+zvRjlgnC+cJLXt /7JG0lTbkVnH2Pbl7SPyCD+QVRapn3P+DYS/PdCKn85xYOSRRe3rSzDYYPQ/Z8ucpoXq zW+pCfWfeMtsf/Ws1c/1I4jWgY8nMaVhJ3Giw= Original-Received: by 10.204.119.71 with SMTP id y7mr972015bkq.24.1246604747677; Fri, 03 Jul 2009 00:05:47 -0700 (PDT) In-Reply-To: <4A4DABA8.40906@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: 254858926 - 7eb1c5ff24e2 - 20090703 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:51580 Archived-At: --===============1377678130== Content-Type: multipart/alternative; boundary=0016e6d59e1f2921f2046dc7c926 --0016e6d59e1f2921f2046dc7c926 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 " . -- luigi --0016e6d59e1f2921f2046dc7c926 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Fri, Jul 3, 2009 at 8:56 AM, Taco Hoe= kwater <taco@elv= enkind.com> 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 =C2=A0\the\inputlineno or the lua
equivalent \ctxlua{tex.inputlineno} will work.
The problem is exactly locate the error in source .
So= metimes the errorline=C2=A0 of the log are in someway imprecise , ie. "= ;the errors is (are)
around here " .

--
luig= i

--0016e6d59e1f2921f2046dc7c926-- --===============1377678130== 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 ___________________________________________________________________________________ --===============1377678130==--