Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 !
   \ENDFOR

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

share|improve this question
8  
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

1 Answer 1

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

\usepackage[noend]{algorithmic}

there won't be any closing statements.

share|improve this answer

Your Answer

 
discard

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.