I have the following problem: I am writing a couple of algorithms using algorithm2e. I have a bunch of longer if statements and longer if conditions. The lines are broken, but the new lines are not indented properly:
\begin{document}
\begin{algorithm}[H]
\SetAlgoLined
\KwInput{Parameters...}
\KwOutput{$\emptyset$}
\If{the lines through $x_{1}, x_{2}$ and $y_{1}, y_{2}$ intersect in a single point $z$
which lies on the circle $C$
}
{
Do something \;
}
\caption{Algoritm test...}
\end{algorithm}
\end{document}
I could force line breaks at certain positions using \, but that does not fix the indentation problems either. I saw the solution provided here: How to break lines in conditions using algorithm2e?
But I don't understand what is happening in that code and I was not able to reproduce the result with my problem. How can I indent the code correctly (is it possible to use something like an mbox?)?
