From: Hans Hagen <pragma@wxs.nl>
Subject: Re: pagemark code works no more with arranging 3SIDE
Date: Mon, 11 Aug 2003 14:34:06 +0200 [thread overview]
Message-ID: <5.2.0.9.1.20030811143345.02bbce70@server-1> (raw)
In-Reply-To: <9E3EEDBE-C9DD-11D7-A3EA-0030659899AA@fiee.net>
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
-------------------------------------------------------------------------
next prev parent reply other threads:[~2003-08-11 12:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-08 20:19 Henning Hraban Ramm
2003-08-11 12:34 ` Hans Hagen [this message]
2003-08-11 20:42 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.2.0.9.1.20030811143345.02bbce70@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).