ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to "\processcommalist"?
@ 2005-07-01 16:15 Mojca Miklavec
  2005-07-01 17:54 ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Mojca Miklavec @ 2005-07-01 16:15 UTC (permalink / raw)


I would like to define a command, which would be called in the following way:
    \TheBossWantsTheWorkToBeDoneOn[monday,wednesday,thursday]{tidy up}

so that it would be equivalent to:
    \WeHaveToDo[monday]{tidy up}
    \WeHaveToDo[wednesday]{tidy up}
    \WeHaveToDo[thursday]{tidy up}

I played a bit with different variants of \processcommalist, but I
can't figure out how to use it in this particular case.

Is there also a possibility to define a command like
    \IHaveToDoTheTasks[1-4,7,9-11]{until tomorrow}

which would expand into
    \IHaveToDoTheTask[1]{until tomorrow}
    \IHaveToDoTheTask[2]{until tomorrow}
    \IHaveToDoTheTask[3]{until tomorrow}
    \IHaveToDoTheTask[4]{until tomorrow}
    \IHaveToDoTheTask[7]{until tomorrow}
    \IHaveToDoTheTask[9]{until tomorrow}
    \IHaveToDoTheTask[10]{until tomorrow}
    \IHaveToDoTheTask[11]{until tomorrow}
?

Thanks for any suggestions,
    Mojca

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-07-04 22:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-01 16:15 How to "\processcommalist"? Mojca Miklavec
2005-07-01 17:54 ` Taco Hoekwater
2005-07-01 18:45   ` Mojca Miklavec
2005-07-04 15:12     ` Hans Hagen
2005-07-04 21:08       ` Mojca Miklavec
2005-07-04 22:20         ` Hans Hagen
2005-07-01 20:39   ` How to "\processcommalist"? (corrected solution) Taco Hoekwater

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).