The following code uses the etoolbox package to convert a list a,b,c into an internal list (called \mylist) and then typesets that with colons: a:b:c:. However, when I load the etextools package (by uncommenting the second line), I get no list output.
\documentclass{minimal}
\usepackage{etoolbox}
%\usepackage{etextools}
\begin{document}
A list:
\def\mylist{}
\forcsvlist{\listadd\mylist}{a,b,c}
\def\do#1{#1:}
\dolistloop{\mylist}
\end{document}
I suspect it is is a bug since etextools claims to depend on etoolbox. Is this a bug or am I doing something wrong? In either case, how can I use \dolistloop with
etextools (which I want for goodies like \expandnext)?
Notes
\show\mylistproduces the same outputa|b|c|in both cases, so the problem is with\dolistloopwhich expands to\forlistloop\do- The
\forlistloopcommand becomes substantially more complicated whenetextoolsis used. - This question might be relevant (but not obviously).
\DeclareCmdListParser\listloop{|}command inetextools.styis responsible for changing\forlistloop. Not sure yet why this breaks the behaviour. – mforbes Mar 26 '12 at 22:12etextools, then\listloop{\mylist}works where\dolistloop{\mylist}fails. I would still like code that works with and withoutetextools. – mforbes Mar 26 '12 at 22:19