[metapost] Processing comma separated values

Taco Hoekwater taco at elvenkind.com
Fri Feb 26 08:32:23 CET 2010


Aditya Mahajan wrote:
> Hi,
> 
> What is the canonical way of processing a list of comma separated values 
> in metapost. I want to write a helper macro for the boxes package so that

I do not have time to write a full answer, but the way to
process a list of argument values is something like this:

def boxsep (text a) =
    forsuffixes _a=a:
	 show _a;
    endfor
enddef;


Best wishes,
Taco


More information about the metapost mailing list