Is there any way to add a blank line in algorithm2e?
I have the following document:
\documentclass{article}
\usepackage[linesnumbered]{algorithm2e}% http://ctan.org/pkg/algorithm2e
\begin{document}
\begin{algorithm}
\SetAlgoLined
i = 1 + j\\
% I would like to add a \linebreak here
j = 1 + i\\
\end{algorithm}
\end{document}
This outputs:
I would like to have:
If I add \\
or \linebreak
between i = 1 + j\\
and j = 1 + i\\
I get the following error message:
Best Answer
algorithm2e
's line-ending macro is\;
. From thealgorithm2e
documentation: