From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/25492 Path: news.gmane.org!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: getcommalistsize Date: Sun, 22 Jan 2006 13:56:58 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137934708 21342 80.91.229.2 (22 Jan 2006 12:58:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Jan 2006 12:58:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 22 13:58:25 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 1F0enS-00078P-EN for gctc-ntg-context-518@m.gmane.org; Sun, 22 Jan 2006 13:58:20 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2DC1D12772; Sun, 22 Jan 2006 13:58:18 +0100 (CET) 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 29796-03-3; Sun, 22 Jan 2006 13:58:14 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C5A99127A6; Sun, 22 Jan 2006 13:58:14 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F25B3127A6 for ; Sun, 22 Jan 2006 13:58:12 +0100 (CET) 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 29796-03-2 for ; Sun, 22 Jan 2006 13:58:12 +0100 (CET) Original-Received: from smtp.science.uva.nl (smtp.science.uva.nl [146.50.4.84]) by ronja.ntg.nl (Postfix) with SMTP id 18E4D12772 for ; Sun, 22 Jan 2006 13:58:11 +0100 (CET) Original-Received: from 118-193.uva.surfnetthuis.nl [145.98.118.193] by smtp.science.uva.nl with ESMTP (sendmail 8.11.6p2/config 11.36). id k0MCw9910738; Sun, 22 Jan 2006 13:58:09 +0100 X-Organisation: Faculty of Science, University of Amsterdam, The Netherlands X-URL: http://www.science.uva.nl/ Original-To: NTG ConTeXt X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:25492 Archived-At: I wanted to do something with the length of a commalist but found that it macro \getcommalistsize does not seem to respond. Here is a small test: \starttext \def\showcommalist#1{commalist=(#1)\crlf (size=\getcommalistsize[#1])\crlf \processcommalist[#1]\showcommalistitem\crlf (commalistsize=\commalistsize)\par} \def\showcommalistitem#1{item = #1 } \showcommalist{a,b,c,d,e} \showcommalist{1,2,3} direct call (size=\getcommalistsize[p,q]) \stoptext result: commalist=(a,b,c,d,e) (size=) item = a item = b item = c item = d item = e (commalistsize=5) commalist=(1,2,3) (size=) item = 1 item = 2 item = 3 (commalistsize=3) direct call (size=) As can be seen the macro \getcommalistsize does not give a value back, \processcommalist works. Am I doing something wrong here or understood it wrong? yours sincerely, dr. H. van der Meer