From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21163 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How to "\processcommalist"? Date: Tue, 05 Jul 2005 00:20:33 +0200 Message-ID: <42C9B631.8020106@wxs.nl> References: <6faad9f005070109152f691f61@mail.gmail.com> <42C5833A.3050204@elvenkind.com> <6faad9f005070111458d0e7fd@mail.gmail.com> <42C951ED.3040400@wxs.nl> <6faad9f00507041408331cc919@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120515648 21445 80.91.229.2 (4 Jul 2005 22:20:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2005 22:20:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 05 00:20:46 2005 Return-path: 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 1DpZIs-0003ze-Jx for gctc-ntg-context-518@m.gmane.org; Tue, 05 Jul 2005 00:20:38 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 11BCF127C8; Tue, 5 Jul 2005 00:20:38 +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 11870-04; Tue, 5 Jul 2005 00:20:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7392D127B3; Tue, 5 Jul 2005 00:20:34 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17ED3127B3 for ; Tue, 5 Jul 2005 00:20: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 11934-02 for ; Tue, 5 Jul 2005 00:20:32 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 3653A1278D for ; Tue, 5 Jul 2005 00:20:32 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j64MKOV8023036; Tue, 5 Jul 2005 00:20:24 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 5418A2445D; Mon, 4 Jul 2005 23:45:08 +0200 (CEST) Original-Received: from [10.100.1.53] (unknown [10.100.1.53]) by server-1.pragma-net.nl (Postfix) with ESMTP id 18B8F1A19D; Mon, 4 Jul 2005 21:45:07 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Mojca Miklavec , mailing list for ConTeXt users In-Reply-To: <6faad9f00507041408331cc919@mail.gmail.com> X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21163 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21163 Mojca Miklavec wrote: > Taco's solution already solved my problem, but I believe it would be > nice to add some \processenumeratedlist (well, some better name should > be given!) command to ConTeXt one day. That way it would be possible > to process some commands like > \filterpages[file.pdf][1,3,5] > also with > \filterpages[file.pdf][1-3,5,7-11] ah, you stopped rading page-imp.tex too early, there's also: \def\dowithrange#1#2% #2 takes number {\beforesplitstring#1\at:\to\fromrange \aftersplitstring #1\at:\to\torange \ifx\torange\empty\let\torange\fromrange\fi \dostepwiserecurse\fromrange\torange1{#2{\recurselevel}}} but we can indeed make a nicer looking one Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------