From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12862 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: pagemark code works no more with arranging 3SIDE Date: Mon, 11 Aug 2003 14:34:06 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030811143345.02bbce70@server-1> References: <9E3EEDBE-C9DD-11D7-A3EA-0030659899AA@fiee.net> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1060607265 11520 80.91.224.253 (11 Aug 2003 13:07:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Aug 2003 13:07:45 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Aug 11 15:07:44 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19mCOm-00027V-00 for ; Mon, 11 Aug 2003 15:07:44 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 338BB10B4A; Mon, 11 Aug 2003 15:07:43 +0200 (MEST) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 7F45A10B39 for ; Mon, 11 Aug 2003 14:42:00 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id h7BCfre00491 for ; Mon, 11 Aug 2003 14:41:53 +0200 Original-Received: from laptop-3.wxs.nl (laptop-3.pragma-net [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 9906F17BAD for ; Mon, 11 Aug 2003 14:41:46 +0200 (CEST) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: <9E3EEDBE-C9DD-11D7-A3EA-0030659899AA@fiee.net> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12862 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12862 At 22:19 08/08/2003 +0200, Henning Hraban Ramm wrote: >Hello esp. Hans! > >I told you more than once about my address book. ;-) >You wrote this nice code for me, >that calculates the first and last name on the page: > >--- > >\def\RegisterPageMark#1#2% #1=Class #2=Text > {\iftrialtypesetting \else > \doglobal\increment\MNamCounter% > \textreference[#1:t:\MNamCounter]{#2}% > \doifreferencefoundelse{#1:t:\MNamCounter} > {\doifundefined{#1:f:\currentrealreference}% > {\setxvalue{#1:f:\currentrealreference}% > {\noexpand\in[#1:t:\MNamCounter]}} > \setxvalue{#1:l:\currentrealreference}% > {\noexpand\in[#1:t:\MNamCounter]}}% > {}% > \fi} > >\def\GetFirstOnPage#1{\getvalue{#1:f:\realfolio}} % #1=Class >\def\GetLastOnPage#1{\getvalue{#1:l:\realfolio}} % #1=Class > >\setupheadertexts [][\GetFirstOnPage{MNam}--\GetLastOnPage{MNam}] > >\def\Name#1{\bf #1\RegisterPageMark{MNam}{\FirstNCharacters{4}{#1}}} > >--- > >It doesn't work with the arranging "3SIDE" or even "XY" with three pages >on A4 landscape. >The headers show only the dash. >I can't tell how arranging is involved in this counter stuff. > >Is there a simple solution? Can you make me a small test file? Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------