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 would like to generate an algorithm with the algorithmic package which does not show the annoying closing statements when I typeset it. I have done this before but have now forgotten how to do it. Specifically,

   \FORALL Natural numbers N
      \STATE N=N-1 !

I'd prefer that the final \ENDFOR statement not show up after typesetting as this just needlessly chews up space.

share|improve this question
Can you post your answer as an answer to this question, so that you can accept it and the question be resolved? – Charles Stewart Jan 28 '11 at 8:32
It doesn't look like blackkettle will returen. So I added a CW answer. Could someone please upvote it once, so that this question gets off the unanswered list. – Caramdir Feb 7 '11 at 23:17

From the algorithmic manual:

There is a single option, noend that may be invoked when the algorithmic package is loaded. With this option invoked the end statements are omitted in the output. This allows space to be saved in the output document when this is an issue.

So, if you load the package with


there won't be any closing statements.

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.