CTAN Comprehensive TeX Archive Network

commado – Expandable iteration on comma-separated and filename lists

The bun­dle pro­vides two pack­ages: com­mado and filesdo.

The pack­age com­mado pro­vides the com­mand \DoWithCSL:

\DoWithCSL{<cmd>}{<list>} ap­plies an ex­ist­ing one-pa­ram­e­ter macro <cmd> to each item in a list <list> in which terms are sep­a­rated by com­mas.

The pack­age filesdo pro­vides the com­mand \DoWithBas­esExts:


which runs the sin­gle pa­ram­e­ter com­mand <cmd> on each file whose base and ex­ten­sion are re­spec­tively from the comma-sep­a­rated lists <bases> and <exts>.

Th­ese ‘loop’-like com­mands are (them­selves) en­tirely ex­pand­able.

The pack­ages rely on pack­ages plainpkg, and stack­let

Li­censesThe Project Public Li­cense 1.3
Copy­right2012 Uwe Lück
Main­tainerUwe Lück
TDS archivecommado.tds.zip
Con­tained inTeX Live as com­mado
MiKTeX as com­mado
TopicsMacro sup­port
See alsoloops

Down­load the con­tents of this pack­age in one zip archive (587.6k).

Com­mu­nity Com­ments



Here you can see a re­spec­tive di­a­gram in newer browsers.


Pack­age Links

Guest Book Sitemap Contact Contact Author