I want to get two algorithm2e environments side by side aligned at the top. I tried it with two minipages, but it does not work. How do I get them side by side in the normal text (not in a floating environment)?
Here is a MWE:
\documentclass{article}
\usepackage[ruled,noend]{algorithm2e}
\begin{document}
\begin{minipage}{5cm}
\begin{algorithm}[H]
\caption{Algo 1}
line 1\;
line 2\;
\end{algorithm}
\end{minipage}%
\begin{minipage}{5cm}
\begin{algorithm}[H]
\caption{Algo 1}
line 1\;
\end{algorithm}
\end{minipage}
\end{document}

\vspace{0pt}at the beginning of eachminipageenvironment. Related to http://tex.stackexchange.com/questions/11630/aligning-image-and-text-on-top-with-minipages – jub0bs Dec 01 '13 at 21:42...\begin{minipage}{5cm} \vspace{0pt}\begin{algorithm}[H]...– Ivo Dec 01 '13 at 21:45