I am trying to write an algorithm with multiple inputs in algorithm2e
.
The result I would like to have is something like
Algorithm
-------------------
Input: Input number 1
Input number 2
Input number 3
[Some clever algorithm]
The best I could do yet was one of those two solutions
\begin{algorithm}
\KwIn{Input number 1}
\KwIn{Input number 2\\ Input number 3
\end{algorithm}
which archives
Algorithm
-------------------
Input: Input number 1
Input: Input number 2
Input number 3
Any idea how to get the desired result?
Best Answer
You can define a new command to give you the desired indentation: