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\mylist
produces the same outputa|b|c|
in both cases, so the problem is with\dolistloop
which expands to\forlistloop\do
- The
\forlistloop
command becomes substantially more complicated whenetextools
is used. - This question might be relevant (but not obviously).
\DeclareCmdListParser\listloop{|}
command inetextools.sty
is responsible for changing\forlistloop
. Not sure yet why this breaks the behaviour.etextools
, then\listloop{\mylist}
works where\dolistloop{\mylist}
fails. I would still like code that works with and withoutetextools
.