From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74858 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: is it possible to have first and last line numbers from page? Date: Sun, 4 Mar 2012 12:04:22 +0100 Message-ID: <7EE03A1D-A4BA-4AB1-BD98-7075F300C85D@googlemail.com> References: <4F534200.3040003@web.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1330859081 21429 80.91.229.3 (4 Mar 2012 11:04:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 4 Mar 2012 11:04:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 04 12:04:41 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 1S49F0-0002kH-Su for gctc-ntg-context-518@m.gmane.org; Sun, 04 Mar 2012 12:04:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 01E71CB2A5; Sun, 4 Mar 2012 12:04:38 +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 Q2-AtPTu2h5t; Sun, 4 Mar 2012 12:04:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 199A5CB299; Sun, 4 Mar 2012 12:04:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D76DCB299 for ; Sun, 4 Mar 2012 12:04:32 +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 Lx2u3ahu8Zaz for ; Sun, 4 Mar 2012 12:04:30 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id CA430CB291 for ; Sun, 4 Mar 2012 12:04:30 +0100 (CET) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q24B4TLK007330 for ; Sun, 4 Mar 2012 12:04:30 +0100 Original-Received: by eaal1 with SMTP id l1so1245767eaa.14 for ; Sun, 04 Mar 2012 03:04:29 -0800 (PST) Received-SPF: pass (google.com: domain of schuster.wolfgang@googlemail.com designates 10.213.27.5 as permitted sender) client-ip=10.213.27.5; Authentication-Results: mr.google.com; spf=pass (google.com: domain of schuster.wolfgang@googlemail.com designates 10.213.27.5 as permitted sender) smtp.mail=schuster.wolfgang@googlemail.com; dkim=pass header.i=schuster.wolfgang@googlemail.com Original-Received: from mr.google.com ([10.213.27.5]) by 10.213.27.5 with SMTP id g5mr2522500ebc.49.1330859069866 (num_hops = 1); Sun, 04 Mar 2012 03:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=2ixvz6/xghcBUfY7bS2gG4Z88zhgEm9Pz6UHcYpUWS8=; b=dQQyVK+5cdiGn0R1zYjSJcITXy3hby2XO1sX5TzrKlpZfloe/HOrlaGL60oxgBRx6d 7CO3h6JgGkmQc8+ZBsHMXa8wRupCnnXFVuxsttY4H3/4T7iSesR09a6sN/J8dKx8S5R8 5UbeFYngx8Jc5NXWfh43QkXXsvaIb+5iRfo4TfoI5/SgGwIwCf7gIxj451W2ZtSD3aHQ +jfayd5naqACQ3FoyHk+u7U8G/g4+WubCp3xiauWwVDs1H/R/UjxB+ErrrpZmdqRUWi6 pNLt13M09r/mrkaW0d/pSTRlo46r83vAumqEx8jAHR4NxHqz5Yh440BstE+IfyKYV1yT 4CrQ== Original-Received: by 10.213.27.5 with SMTP id g5mr1916713ebc.49.1330859069757; Sun, 04 Mar 2012 03:04:29 -0800 (PST) Original-Received: from [192.168.2.36] (p57AFCEC0.dip.t-dialin.net. [87.175.206.192]) by mx.google.com with ESMTPS id d54sm648483eei.9.2012.03.04.03.04.27 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Mar 2012 03:04:28 -0800 (PST) In-Reply-To: <4F534200.3040003@web.de> X-Mailer: Apple Mail (2.1257) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.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: 0HGFn4ueO - b0f014822f56 - 20120304 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:74858 Archived-At: Am 04.03.2012 um 11:20 schrieb Pablo Rodr=EDguez: > I have asked this question before (more than twice), after I found no > answer in the ConTeXt reference manual, the wiki or the mailing list. > = > I wanted to be able to have in the headers the first and last line > number from page. This feature is extremely useful when typesetting some > kinds of poetry. > = > The most basic sample would be: > = > \starttext > \startlinenumbering > \dorecurse{10}{\input zapf\par\input knuth} > \stoplinenumbering > \stoptext > = > Is that possible to achieve with ConTeXt? Yes but it=92s not usable because the numbers are always shown on the next = page. \definemarking[linenumber] \define\LinenumberCommand {\normalexpanded{\setmarking[linenumber]{\linenumber}}} \setuplinenumbering[command=3D\LinenumberCommand] \startsetups linenumber \doiftext { \getmarking[linenumber] } { \getmarking[linenumber][first] =96 \getmarking[linenumber][last] } \stopsetups \setupheadertexts[\texsetup{linenumber}] \starttext \dorecurse{6}{\input tufte\par} \startlinenumbering \dorecurse{20}{\input knuth\par} \stoplinenumbering \resetmarking[linenumber] \dorecurse{6}{\input tufte\par} \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________