I'm trying to write a program for a pseudocode with while-loops, for-loops and if-else instructions in Latex.
I would like to remove the "do" of the while-loop, the "end for" of the for-loop, the "then" and the "end if" of the if-else statement.
I have the following package installed
\usepackage{algorithm} \usepackage{algorithmic}
\newcommand\NoDo{\renewcommand\algorithmicdo{}} \newcommand\NoThen{\renewcommand\algorithmicthen{}} \newcommand\NoEndfor{\renewcommand\algorithmicendfor{}} \newcommand\NoEndif{\renewcommand\algorithmicendif{}}
No error meassage is generated, but nothing happens. Do I have to write the last two commands differently?
Thanks in advance