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 | [EMAIL PROTECTED]
                      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
-------------------------------------------------------------------------

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to