From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29640 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: sorting list Date: Mon, 24 Jul 2006 12:27:30 +0200 Message-ID: <44C4A092.3070506@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153736863 10964 80.91.229.2 (24 Jul 2006 10:27:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Jul 2006 10:27:43 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 24 12:27:41 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G4xf1-0008VA-Ay for gctc-ntg-context-518@m.gmane.org; Mon, 24 Jul 2006 12:27:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1DB7D128C6; Mon, 24 Jul 2006 12:27:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23563-09; Mon, 24 Jul 2006 12:27:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B09EB12859; Mon, 24 Jul 2006 12:27:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E0C6612859 for ; Mon, 24 Jul 2006 12:27:33 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23511-03 for ; Mon, 24 Jul 2006 12:27:32 +0200 (CEST) Original-Received: from lochside.elvenkind.com (elvenknd.xs4all.nl [213.84.171.68]) by ronja.ntg.nl (Postfix) with SMTP id C63691279F for ; Mon, 24 Jul 2006 12:27:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by lochside.elvenkind.com (Postfix) with ESMTP id 0DC6F1B96F for ; Mon, 24 Jul 2006 12:27:32 +0200 (CEST) Original-Received: from lochside.elvenkind.com ([127.0.0.1]) by localhost (glenfiddich.elvenkind.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17075-06 for ; Mon, 24 Jul 2006 12:27:31 +0200 (CEST) Original-Received: from [10.10.0.6] (glenlivet.elvenkind.com [10.10.0.6]) by lochside.elvenkind.com (Postfix) with ESMTP id 5426D1B416 for ; Mon, 24 Jul 2006 12:27:31 +0200 (CEST) User-Agent: Mozilla Thunderbird 1.0.6-7.1.20060mdk (X11/20050322) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: by amavisd-new at elvenkind.net X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29640 Archived-At: Hans van der Meer wrote: > Some things I do not understand about sorting: > > This is the example: > \def\sortprocess#1{{\bf #1}} > \definesorting[city][cities][\callupcities] > \setupsorting[city][criterium=all,command=\sortprocess] > \city{Londen} > \city{Berlijn} > \city{New York} > \city{Parijs} > \city{Amstelveen} > \placelistofcities > \callupcities > > question 1. The manual states (p.163) "When we add a command in the > third argument during the definition of the sorted list we may recall > sorted list with this command." > However \callupcities gives me this error: > Runaway argument? > ! Paragraph ended before \callupcities was complete. > > \par \callupcities takes an argument, that is what is causing the error message. But how it is supposed to work, I do not know. > question 2. The command \sortprocess does work, the items are in bold. > But they now are typeset next to one another instead of each one on a > line by itself, as occurs without command=\sortprocess on the setup. You have to extend \sortprocess if you want something besides making a bold inlined list of cities. Why? Consider this idiom: \def\citylist{} \def\makecitylist#1{\doglobal\appendtocommalist{#1}\citylist} \setupsorting[city][criterium=all,command=\makecitylist] Cheers, Taco