From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12838 Path: main.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: pagemark code works no more with arranging 3SIDE Date: Fri, 8 Aug 2003 22:19:31 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <9E3EEDBE-C9DD-11D7-A3EA-0030659899AA@fiee.net> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1060374374 16077 80.91.224.253 (8 Aug 2003 20:26:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2003 20:26:14 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Fri Aug 08 22:26:40 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 19lDou-0007Gq-00 for ; Fri, 08 Aug 2003 22:26:40 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id AD00E10B9B; Fri, 8 Aug 2003 22:26:34 +0200 (MEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by ref.ntg.nl (Postfix) with ESMTP id 74A3E10ACC for ; Fri, 8 Aug 2003 22:20:35 +0200 (MEST) Original-Received: from [212.227.126.206] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19lDj1-0002vW-00 for ntg-context@ntg.nl; Fri, 08 Aug 2003 22:20:35 +0200 Original-Received: from [194.230.27.37] (helo=fiee.net) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19lDj0-00079p-00 for ntg-context@ntg.nl; Fri, 08 Aug 2003 22:20:35 +0200 Original-To: ConTeXt ML X-Mailer: Apple Mail (2.552) 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:12838 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12838 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=3DClass #2=3DText {\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=3DClass \def\GetLastOnPage#1{\getvalue{#1:l:\realfolio}} % #1=3DClass \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=20 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? Gr=FC=DFlis vom Hraban! --=20 http://www.fiee.net/texnique/