Unfortunately this example does not compile on my computer since I don't have packages algorithmwh and mcode. I do, however, confirm your troubles. It seems to be a problem with the
\IF
/
\ENDIF
and
\FOR
/
\ENDFOR
commands. Every step the indentation increases the space after the bullet increases, unfortunately I'm not very familiar with algorithms in LaTeX so I hope someone else knows how to solve this or that this information is enough for you to solve it yourself.
Below a real
minimal working example, excluding the unnecessary packages and lines. When commenting more
IF
s and
FOR
s the unwanted white space decreases.
Code: Select all
\documentclass[11pt]{article}
%%%%%%%%%%%
\usepackage{bm}
\usepackage{mathtools}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage[T1]{fontenc}
\usepackage{array}
\usepackage{enumitem}
\begin{document}
Preceding text.
\begin{itemize}[noitemsep,nolistsep,itemindent=50pt]
\item Foo
\item Bar
\end{itemize}
Following text.
\begin{algorithm}[H]
\caption{blah}
\begin{algorithmic}[1]
\label{FWD}
\FOR{$t = 1 : T$}
\IF{f}
\FOR{$i = t : t + dt$}
% \IF{f}
\IF{(\begin{itemize}[noitemsep,nolistsep,itemindent=50pt] % uses enumitem
\item $dV(t) \ge f$
\end{itemize})}
\STATE \COMMENT{Is the iff}
\ENDIF
% \ENDIF
\ENDFOR
\ENDIF
\ENDFOR
\end{algorithmic}
\end{algorithm}
\end{document}
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit