From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: dictionary
Date: Wed, 23 Dec 2009 22:58:54 +0100 [thread overview]
Message-ID: <76357170-2C61-4725-9756-AFEC9E7EF0DE@fiee.net> (raw)
In-Reply-To: <578E3A2F-F07E-449D-A497-D5160CE08EA4@googlemail.com>
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)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2009-12-23 21:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 17:51 dictionary Horacio Suarez
2009-12-22 18:01 ` dictionary Hans Hagen
2009-12-23 3:45 ` dictionary Horacio Suarez
2009-12-23 12:53 ` dictionary Jelle Huisman
2009-12-23 21:08 ` dictionary Henning Hraban Ramm
2009-12-23 21:20 ` dictionary Wolfgang Schuster
2009-12-23 21:58 ` Henning Hraban Ramm [this message]
2009-12-23 21:24 ` dictionary Horacio Suarez
2009-12-25 20:39 ` dictionary Horacio Suarez
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=76357170-2C61-4725-9756-AFEC9E7EF0DE@fiee.net \
--to=hraban@fiee.net \
--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).