When using the packages algorithm2e (with figure option) and caption, together with a two-sided page layout, indentation of the caption is incorrect on every second page. Minimum example:
\documentclass{book}
\usepackage{caption}
\usepackage[english]{babel}
\usepackage[figure]{algorithm2e}
\begin{document}
test test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test test
\begin{algorithm}[bht]
\Return{$\epsilon$}\;
\caption{Example example example example example example example}
\end{algorithm}
\newpage
test test test test test test test test test test test test test test test test
test test test test test test test test test test test test test test test test
\begin{algorithm}[bht]
\Return{$\epsilon$}\;
\caption{Example example example example example example example}
\end{algorithm}
\end{document}
Does anyone know how to fix this?
