Tag Info

Hot answers tagged

3

For example, you can use this code: \def\ls#1{\lsA#1;;} \def\lsA#1;{\ifx;#1;\else \dosomething{#1}\expandafter\lsA\fi} \def\dosomething#1{\message{I am doing something with #1}} \ls{(a,b);(c,d);(e,f)}


2

The etoolbox has many interesting features, including making list parsers. See also the unstarred version. \documentclass[a4paper]{memoir} \usepackage{etoolbox} \begin{document} \newcommand\handler[1]{item: #1\par} \DeclareListParser*\forsemicolonlist{;} \forsemicolonlist\handler{(a,b);(c,d);(e,f)} \end{document}



Only top voted, non community-wiki answers of a minimum length are eligible