ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans van der Meer <hansm@science.uva.nl>
Subject: getcommalistsize
Date: Sun, 22 Jan 2006 13:56:58 +0100	[thread overview]
Message-ID: <B1909674-E053-4397-A834-DCFEEE767499@science.uva.nl> (raw)

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

             reply	other threads:[~2006-01-22 12:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-22 12:56 Hans van der Meer [this message]
2006-01-22 17:06 ` getcommalistsize Taco Hoekwater
2006-01-22 20:36   ` getcommalistsize Hans van der Meer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B1909674-E053-4397-A834-DCFEEE767499@science.uva.nl \
    --to=hansm@science.uva.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).