Am 2009-12-23 um 22:20 schrieb Wolfgang Schuster:
I tried something similar for my addressbook, but it doesn't work:
\definemarking[MNam]
\setupheadertexts[][{\getmarking[MNam][first]--\getmarking[MNam] [last]}]
\def\Name#1{\bf #1\marking[MNam]{\FirstNCharacters{4}{#1}}}
\define[1]\Name{{\bf#1\expanded{\marking[MNam]{...}}}
Since you haven't sent a complete example this is not tested.
Sorry. It works in an minimal example, now I must find out, why it doesn't in my real case... One small error remains: I get "Aaaa– Bbbb" instead of "Aaaa–Bbbb" (a space before the second name). Where does it come from? Example (don't know how to generate random names...): \starttext \definemarking[MNam] \setupheadertexts[][{\getmarking[MNam][first]–\getmarking[MNam][last]}] \def\Name#1{\bf #1\expanded{\marking[MNam]{\FirstNCharacters{4}{#1}}}} \starttabulate \dorecurse{200}{\NC \Name{Eins \recurselevel} \NC Zwei \NC Drei \NC\NR \HL} \stoptabulate \stoptext Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)