Settings Help
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

com­mado – Ex­pand­able it­er­a­tion on comma-sep­a­rated and file­name 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

CTAN path/macros/generic/com­mado
Doc­u­men­ta­tion Readme
Pack­age doc­u­men­ta­tion
Ver­sion0.11
Li­censeThe LaTeX Project Public Li­cense 1.3
Main­tainerUwe Lück
Con­tained inTeXLive as com­mado
MiKTeX as com­mado
Topics sup­port for de­vel­op­ment of TeX macros
See also loops
Guest Book Sitemap Contact 2013-04-08 00:59