I am trying to have a straight vertical line after if
and for
statements to remove the redundant space in algorithm environment.
I use informs3
class that can be found in this website where you should click INFORMS Journal on Computing Style Files
.
Here is a MWE.
\documentclass[ijoc,nonblindrev]{informs3}
\OneAndAHalfSpacedXII % current default line spacing
\TheoremsNumberedThrough
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\begin{document}
\begin{algorithm}
\DontPrintSemicolon
\For{$i \in V$} {
\For{} {
\If{}{
\uIf{}{
$statement$
}\Else{
$statement$
}
}
}
}
\Return{x}
\caption{{\sc My Algorithm}}
\end{algorithm}
\end{document}
Also, I'd like to remove the spaces between the lines. None of the recommendations presented in this post Vertical spacing in the algorithm environment works.I would appreciate if someone could help me out.
informs3
class document loading the packagealgorithm2e
, but I got a different output.lines
, the spacing increased even more.