About

{loops} is about looping constructs which allow a programmer to apply the same operation multiple times, each time with possibly different parameters.

is about looping constructs which allow a programmer to apply the same operation multiple times, each time with possibly different parameters.

In plain TeX and in LaTeX, one can implement this using counters and \ifnum checks or \loop\unless. Some LaTeX packages even provide their own looping constructs, e.g. TikZ/PGF provides \foreach, pstricks provides \psforeach, multido provides \multido, etc. If your question specifically involves or , add that tag to your question along with this one.

Frequently Asked Questions

  1. How can I iterate over a comma-separated list?
  2. How can I store strings in an array?
  3. How can I fill a line with a repeating string?
  4. How can I put a loop in a \newcommand definition?
  5. How can I insert figures in a loop?
history | excerpt history