TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I try to use \forLoop for a countdown sequence:




But this simply does not do anything. If the step is positive, everything is fine. I looked up the documentation for forloop and in the implementation \addtocounter was used to increment/decrement the counter. \addtocounter accepts negative values and effectively adds them to a specified counter.

So my question is: what am I doing wrong here?

share|improve this question
up vote 5 down vote accepted

\forLoop does \addtocounter only if the condition \value{idx}<1, with your settings, is satisfied, which is never. The package documentation tells that \forLoop is deprecated. So


should be your choice.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.