[texhax] passing arguments as a delimited list

Yo Sato yosato16 at gmail.com
Sun Apr 12 12:35:21 CEST 2009

Hi all,

I wonder if any of you knows how to implement (if this is possible) a
TeX or LaTeX macro that passes multiple (optional) arguments as a
single list (with delimiters), i.e. as executable as below

\somecommand[item1, item2, item3,...]{...}

As I see this style a lot for class specification (e.g.
\documentclass[a4paper,draft]{article}), I shouldn't think why this is
not possible for macros. So far however I can't find how to do this in
a documentation, although there are discussions on how to 'increase'
the number of arguments with keyval package etc. What I'd rather is a
listed single argument, whether optional or obligatory, as it is
cleaner and structurable.

Any advice???


More information about the texhax mailing list