CTAN Comprehensive TeX Archive Network

New on CTAN: commado

Date: November 29, 2012 4:07:44 PM CET
Uwe Lück submitted the commado package to CTAN. Summary description: Expandable iteration on comma-separated and filename lists License type: lppl Announcement text:
`commado.sty' provides \DoWithCSL{<cmd>}{<list>} to apply an existing one-parameter macro <cmd> to each item in a list <list> in which items are separated by commas. `filesdo.sty' provides \DoWithBasesExts{<cmd>}{<bases>}{<exts>} to run <cmd>{<base>.<ext>} for some (at most) one-parameter macro <cmd>, each base filename <base> in the comma-separated list <bases> and each extension in the comma-separated list <exts>. As opposed to LaTeX’s internal \@for, no assignments are involved (unless <cmd> uses assignments, "expandability" in "TeX’s gullet"). Both package's are "generic," i.e., should work with Plain TeX, LaTeX or even other formats, relying on the `plainpkg' package for some minimal LaTeX-like behaviour. RELATED PACKAGES: `loops' and others mentioned in the `dowith' package documentation. KEYWORDS: macro programming, programming structures, loops, lists REQUIRED PACKAGES: `plainpkg', `stacklet' LICENSE: The package files `commado.sty', `filesdo.sty' and the files `commado.pdf' and `commado.tex' documenting both package files can be redistributed and/or modified under the terms of the LaTeX Project Public License; either version 1.3c of the License, or any later version, see http://www.latex-project.org/lppl.txt There is NO WARRANTY, indeed this still is somewhat experimental. The `commado' package is author-maintained in the sense of the license. The latest public version of the package is available at http://mirror.ctan.org/macros/latex/contrib/commado/ A TDS version of the package is available as http://mirror.ctan.org/install/macros/latex/contrib/commado.tds.zip Please report bugs, problems, suggestions, and bad English via http://www.contact-ednotes.sty.de.vu
This package is located at http://mirror.ctan.org/macros/generic/commado . More information is at http://www.ctan.org/pkg/commado (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Rainer Schöpf

commado – Expandable iteration on comma-separated and filename lists

The bundle provides two packages: commado and filesdo.

The package commado provides the command \DoWithCSL:

\DoWithCSL{<cmd>}{<list>} applies an existing one-parameter macro <cmd> to each item in a list <list> in which terms are separated by commas.

The package filesdo provides the command \DoWithBasesExts:

\DoWithBasesExts{<cmd>}{<bases>}{<exts>}

which runs the single parameter command <cmd> on each file whose base and extension are respectively from the comma-separated lists <bases> and <exts>.

These ‘loop’-like commands are (themselves) entirely expandable.

The packages rely on packages plainpkg, and stacklet

Packagecommado
Versionr0.11a
Copyright2012 Uwe Lück
MaintainerUwe Lück

Announcements

more

Guest Book Sitemap Contact Contact Author