2.7 ⁑Iteration
[Repeating a command n times] [Repeating something for each ‘thing’ in a set] This section covers iterating over data. The datatool package
provides a way of iterating over rows of a database, discussed in
§2.7.1 Iterating Through a Database, but you may also find you need to
iterate over a comma-separated list, so this is discussed in
§2.7.2 Iterating Over a Comma-Separated List. If you want to manually build up a list
and then iterate over it, you may prefer to use etoolbox's
internal lists, discussed in §2.7.3 Iteration With etoolbox's Internal Lists. For
a more general purpose loop ability, you may prefer to use TeX's
\loop
, discussed in §2.7.4 General Iteration with TeX's \loop
.
This book is also available as A4 PDF or 12.8cm x 9.6cm PDF or paperback (ISBN 978-1-909440-07-4).