From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74924 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: is it possible to have first and last line numbers from page? Date: Tue, 6 Mar 2012 19:48:10 +0100 Message-ID: References: <4F534200.3040003@web.de> <7EE03A1D-A4BA-4AB1-BD98-7075F300C85D@googlemail.com> <4F535CCC.2030902@web.de> <4F564A53.5070503@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0766775186==" X-Trace: dough.gmane.org 1331059706 13781 80.91.229.3 (6 Mar 2012 18:48:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2012 18:48:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 06 19:48:26 2012 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 1S4zQs-0000eE-PG for gctc-ntg-context-518@m.gmane.org; Tue, 06 Mar 2012 19:48:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 88CACCB251; Tue, 6 Mar 2012 19:48:22 +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 HQff-ISJ-Rop; Tue, 6 Mar 2012 19:48:16 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 830A1CB247; Tue, 6 Mar 2012 19:48:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E152CB247 for ; Tue, 6 Mar 2012 19:48:15 +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 zLuifsFwlG3k for ; Tue, 6 Mar 2012 19:48:13 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 4F57ACB258 for ; Tue, 6 Mar 2012 19:48:12 +0100 (CET) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q26ImAHj011400 for ; Tue, 6 Mar 2012 19:48:11 +0100 Original-Received: by iajr24 with SMTP id r24so9689781iaj.14 for ; Tue, 06 Mar 2012 10:48:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5ZiMz6ekEA0gRdA7XcvudDWkvrcIIPH7D6E282lQQbQ=; b=ZEZM5/+Ob3MgL2dAtkDB3XVkSjRn9E9rSHWsMik4W1kVWP0vs0jloD2XrSU9JIMQJn AK35bJZbvZQhs/4+CSYBwla52YXOwkBVYLU3XFS1TzU0q1kSWWrmm9xjBxRu/KkABcMj GiDoP5HqLT9jKTSZUycYsP99OqUYkrsdGUhGjcU/4f00cSHN8dh3IwBcVmo3dbqifvfC zjS4xOFP49PwLdT7IJoWE3qvqA/3xAnQRo2Fm1t7jBFW7KAlks4pzJxR4qf5aMVRrQCc 6EJhbnqp8w73ceDC0tlCH01mF1w9N6lVyCzfMmh6o2UTP74EWCj++2iwiDtUykCax2i7 hD8A== Original-Received: by 10.50.193.131 with SMTP id ho3mr9377016igc.55.1331059690450; Tue, 06 Mar 2012 10:48:10 -0800 (PST) Original-Received: by 10.50.216.137 with HTTP; Tue, 6 Mar 2012 10:48:10 -0800 (PST) In-Reply-To: <4F564A53.5070503@web.de> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.169; 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: 0QGGiMbP8 - 665b438845d2 - 20120306 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74924 Archived-At: --===============0766775186== Content-Type: multipart/alternative; boundary=14dae934106306300604ba977c69 --14dae934106306300604ba977c69 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2012/3/6 Pablo Rodr=C3=ADguez > On 05/03/12 15:12, luigi scarso wrote: > > 2012/3/4 Pablo Rodr=C3=ADguez > > If you allow me one more question: is showing the numbers on the sa= me > > page they refer to beyond the limits of TeX/LuaTeX? > > > > Absolutely no. As Hans said, a quick/dirty trick is possible: just > > mark the object with \pagereference[]. The data is stored > > into the *tuc file, which can be read from the second pass. > > Luigi, I'm afraid it doesn't work as expected in the real file > > I'm not surprised.... > Lines are numbered there with [step=3D5]. So I get in headers only > actually numbered lines, although it header should contain the real line > numbers (even with the line number isn't shown on that line). > > How would it the the code in that case? (Sorry for asking this, but I'm > afraid I cannot code in lua [or in any other language].) > Many thanks for your help, > Do you have an example ? --=20 luigi --14dae934106306300604ba977c69 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

2012/3/6 Pablo Rodr=C3=ADguez <oinos@web.de>
On 05/03/12 15:12, luigi scarso wrote:
> 2012/3/4 Pablo Rodr=C3=ADguez
> =C2=A0 =C2=A0 If you allow me one more questio= n: is showing the numbers on the same
> =C2=A0 =C2=A0 page they refer to beyond the limits of TeX/LuaTeX?
>
> Absolutely no. As Hans said, a quick/dirty trick is possible: just
> mark the object with \pagereference[<unique id>]. The data is st= ored
> into the *tuc file, which can be read from the second pass.

Luigi, I'm afraid it doesn't work as expected in the real fil= e

I'm not surprised....=C2=A0
Lines are numbered there with [step=3D5]. So I get in headers only
actually numbered lines, although it header should contain the real line numbers (even with the line number isn't shown on that line).

How would it the the code in that case? (Sorry for asking this, but I'm=
afraid I cannot code in lua [or in any other language].)
= =C2=A0
Many thanks for your help,
Do you have an exampl= e ?

--
luigi

--14dae934106306300604ba977c69-- --===============0766775186== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0766775186==--