Menu
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

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:

\DoWithBas­esExts{<cmd>}{<bases>}{<exts>}

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

Sources/macros/generic/commado
Doc­u­men­ta­tion
Ver­sion0.11
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2012 Uwe Lück
Main­tainerUwe Lück
TDS archivecommado.tds.zip
Con­tained inTeXlive as com­mado
MikTeX as com­mado
Topics sup­port for de­vel­op­ment of (La)TeX macros
See also loops

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

Guest Book Sitemap Contact 2014-04-24 22:41 CEST