From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70378 Path: news.gmane.org!not-for-mail From: Johan Sandblom Newsgroups: gmane.comp.tex.context Subject: Re: sorted phone directory Date: Tue, 2 Aug 2011 16:50:43 +0200 Message-ID: References: <03D403C6-8793-4591-9CF5-C912CE850606@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1312296657 2164 80.91.229.12 (2 Aug 2011 14:50:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 14:50:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 02 16:50:53 2011 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.69) (envelope-from ) id 1QoGJ3-00085p-FE for gctc-ntg-context-518@m.gmane.org; Tue, 02 Aug 2011 16:50:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B7D1CAEAB; Tue, 2 Aug 2011 16:50:52 +0200 (CEST) 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 kSf5TT2Hyxfh; Tue, 2 Aug 2011 16:50:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3BA6CCAEA4; Tue, 2 Aug 2011 16:50:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 613DECAEA4 for ; Tue, 2 Aug 2011 16:50:47 +0200 (CEST) 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 dRQ9Da-28Z52 for ; Tue, 2 Aug 2011 16:50:44 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E97FECAEA3 for ; Tue, 2 Aug 2011 16:50:44 +0200 (CEST) Original-Received: from mail-gw0-f41.google.com (mail-gw0-f41.google.com [74.125.83.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p72EohFh004373 for ; Tue, 2 Aug 2011 16:50:44 +0200 Original-Received: by gwaa20 with SMTP id a20so2695702gwa.14 for ; Tue, 02 Aug 2011 07:50:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=JQkKRWD1XUdBqPa0pQAY5gRaB6lCziEqp2bRgqptG0M=; b=YZefe2MpRrA/HRCHbQ7C7bKvWgKQs6QKr9mJvLMagi+c2Wqlsg1imRFaOeuzgMU7HZ 3CYfOoe25cFLtyduLW9VIZtlM1RYiF1vrBp/qhIsZ042/GPjNpy5VH8kToNVIq0JkJBx e7Lsg46eZbktBGPcxdvo0QbU0pzw4R4GoK3tA= Original-Received: by 10.151.101.15 with SMTP id d15mr1803098ybm.12.1312296643096; Tue, 02 Aug 2011 07:50:43 -0700 (PDT) Original-Received: by 10.150.60.10 with HTTP; Tue, 2 Aug 2011 07:50:43 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05FfqOHfp - a35fc3829b52 - 20110802 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 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:70378 Archived-At: Thank you. Unfortunately I get the following: Running `LuaConTeXt' on `minimaltele2' with ``context minimaltele2.tex'' mtx-context | run 1: luatex --fmt=3D"/home/johans/context/tex/texmf-cache/luatex-cache/context/5fe67e0b= fe781ce0dde776fb1556f32e/formats/cont-en" --lua=3D"/home/johans/context/tex/texmf-cache/luatex-cache/context/5fe67e0b= fe781ce0dde776fb1556f32e/formats/cont-en.lui" --backend=3D"pdf" "./minimaltele2.tex" This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) \write18 enabled. (minimaltele2.tex ConTeXt ver: 2011.05.18 22:26 MKIV fmt: 2011.6.25 int: english/english system > cont-new.mkiv loaded (/home/johans/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > minimaltele2.top loaded (minimaltele2.top) fonts > latin modern fonts are not preloaded languages > language en is active {/home/johans/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.= map}fonts > preloading latin modern fonts (second stage) (/home/johans/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/johans/context/tex/texmf-context/tex/context/base/type-otf.mkiv){/ho= me/johans/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/johans/co= ntext/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded system > begin file minimaltele2.tex at line 14 ! Undefined control sequence. system > tex > error on line 1 in file minimaltele2.tex: Undefined control sequence ... 1 >> \mainlanguage[swedish] 2 3 \definedescription 4 [TelefonEntry] 5 [width=3D2em] 6 7 %%\unexpanded\def\TelefonCommand#1#2#3% 8 %% {\startTelefonEntry{#2}#3\stopTelefonEntry} 9 \unexpanded\def\TelefonCommand#1#2#3% 10 {\maxaligned{#2\hfil#3}\par} 11 \TelefonCommand #1#2#3->\maxaligned {#2\hfil #3}\par l.1 ...tingentry{1}{A=F6laksd a=F6lksd}{044578264}{} \doplacelistofsorts ...gparameter \c!method ", })} \stoppacked \endgroup l.25 ...on][criterium=3Dall,command=3D\TelefonCommand] ? 2011/8/2 Wolfgang Schuster : > > Am 02.08.2011 um 16:08 schrieb Johan Sandblom: > >> Wolfgang, this is what I was hoping for, but there are some problems: >> - the numbers should be flush right >> - in the real file entries are longer than in my example file, but >> none so long as to require a line break. =A0Here many entries require a >> line break and the next entry runs over the second line of the broken >> entry. See a slightly more realistic example below. >> >> Gratefully, Johan >> >> \unexpanded\def\TelefonCommand#1#2#3% >> {\startTelefonEntry{#2}#3\stopTelefonEntry} > > \unexpanded\def\TelefonCommand#1#2#3% > =A0{\maxaligned{#2\hfil#3}\par} > > Wolfgang > > _________________________________________________________________________= __________ > 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-co= ntext > webpage =A0: http://www.pragma-ade.nl / http://tex.aanhet.net > archive =A0: http://foundry.supelec.fr/projects/contextrev/ > wiki =A0 =A0 : http://contextgarden.net > _________________________________________________________________________= __________ > -- = Johan Sandblom, MD PhD m +46735521477=A0 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________