Is there a command in algorithmic
package which is similar to \ElsIf
in algorithmicx
? ( I do not want each nested if to be indented).
[Tex/LaTex] ELSE IF in algorithmic package
algorithmicalgorithmicx
algorithmicalgorithmicx
Is there a command in algorithmic
package which is similar to \ElsIf
in algorithmicx
? ( I do not want each nested if to be indented).
Best Answer
Yes there is:
\ELSIF
. This is one of the first examples taken from thealgorithms
bundle documentation (section 3.2 The if-then-else Statement, p 3):