From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55312 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: dictionary Date: Wed, 23 Dec 2009 22:58:54 +0100 Message-ID: <76357170-2C61-4725-9756-AFEC9E7EF0DE@fiee.net> References: <4B3212B6.4090203@jhnet.nl> <578E3A2F-F07E-449D-A497-D5160CE08EA4@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="windows-1252"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261605583 23650 80.91.229.12 (23 Dec 2009 21:59:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2009 21:59:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 23 22:59:36 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NNZEr-0004nJ-9X for gctc-ntg-context-518@m.gmane.org; Wed, 23 Dec 2009 22:59:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 96641C9C04; Wed, 23 Dec 2009 22:59:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UM8Ko9n2FPPq; Wed, 23 Dec 2009 22:59:14 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F29CCC9B87; Wed, 23 Dec 2009 22:59:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DDD5CC9B87 for ; Wed, 23 Dec 2009 22:59:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ehuz6QfLC+8A for ; Wed, 23 Dec 2009 22:58:57 +0100 (CET) Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [87.230.77.106]) by balder.ntg.nl (Postfix) with ESMTP id A3310C9B66 for ; Wed, 23 Dec 2009 22:58:55 +0100 (CET) X-No-Auth: unauthenticated sender Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [127.0.0.1]) by turan.fiee.net (Postfix) with ESMTP id 2DA2F17BC043A for ; Wed, 23 Dec 2009 22:58:54 +0100 (CET) Original-Received: from [10.128.9.9] (100-231.77-83.cust.bluewin.ch [83.77.231.100]) by turan.fiee.net (Postfix) with ESMTP for ; Wed, 23 Dec 2009 22:58:54 +0100 (CET) In-Reply-To: <578E3A2F-F07E-449D-A497-D5160CE08EA4@googlemail.com> X-Mailer: Apple Mail (2.936) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55312 Archived-At: 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=96 Bbbb" instead of "Aaaa=96Bbbb" (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]=96\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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________