For space consideration, I wish to condense my pseudocode.
I find it a bit annoying to me to always have a \EndIf or \EndFor at the end of every block, especially when inside the block only lies one statement. e.g.
\documentclass[a4paper]{article}
\usepackage{algorithmicx}
\usepackage{algorithm} % http://ctan.org/pkg/algorithms
\usepackage{algpseudocode} % http://ctan.org/pkg/algorithmicx
\newcommand*{\Let}[2]{\State #1 $\gets$ \parbox[t]{\linegoal}{#2\strut}}
\algnewcommand\algorithmicinput{\textbf{INPUT: }}
\algnewcommand\Input{\item[\algorithmicinput]}
\algnewcommand\algorithmicoutput{\textbf{OUTPUT: }}
\algnewcommand\Output{\item[\algorithmicoutput]}
\begin{document}
\begin{algorithm}
\begin{algorithmic}[1]
\Procedure{A}{}
\ForAll{$a\in A$}
\If{$a\geq b$}
\State\Return $a$
\EndIf
\EndFor
\EndProcedure
\end{algorithmic}
\end{algorithm}
\end{document}
To save the space, I wish to remove them, although it may be non-standard.
Once I do it, the code cannot be compiled due to errors.
Is there any "illegal" trick to kinda remove them from the output PDF?


\documentclass{...}and ending with\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to help you. Help them help you: remove that one hurdle between you and a solution to your problem. – jub0bs Nov 19 '13 at 10:08algpseudocodepackage with thenoendoption do the trick? – jub0bs Nov 19 '13 at 10:17\usepackage{algpseudocode}and doing\usepackage[noend]{algpseudocode}? – Sibbs Gambling Nov 19 '13 at 10:26