My desired output is similar to the example given in this answer, in that I want the caption below the algorithm and outside the box, except I want the algorithm included as a figure (so I use \usepackage[figure,boxed]{algorithm2e}
).
Currently I have something like this:
The MWE:
\documentclass[a4paper]{article}
\usepackage{blindtext}
\usepackage[linesnumbered,boxed,figure]{algorithm2e}
\SetAlCapSkip{1em}
\SetKwInput{KwInput}{Input}
\SetKwInput{KwOutput}{Output}
\begin{document}
\begin{algorithm}[h]
\SetAlgoLined
\KwInput{Parameters...}
\KwOutput{$\emptyset$}
\If{Condition}
{
Do something \;
}
\caption{Algoritm test...}
\end{algorithm}
\end{document}