How can I get rid of the do in a for loop and the then in an if statement?
closed as not a real question by Mico, Stefan Kottwitz♦ Apr 20 '12 at 7:21
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
You can redefine
Adding the previous lines in the preamble (respectively, before a particular algorithmic environment enclosing the construct inside a group) will remove the "then" and "do" from all the
Here is an implementation of @Gonzalo's answer that defines