When I tried to use the enumerate environment inside the algorithm environment (algorithm2e package) I got this warning message:
Overfull \hbox (15.0pt too wide) detected at line 13
Here is a minimal working example I used to test the warning:
\documentclass{article}
\usepackage{algorithm2e}
\begin{document}
\begin{algorithm}
\caption{Test}
\begin{enumerate}
\item first item
\end{enumerate}
\label{alg:test}
\end{algorithm}
\end{document}
Does anyone know what the problem is and how to solve it?
P.S: I really need to get rid of this warning.
algorithm
insideenumerate
) refer to tex.stackexchange.com/q/76299/250119 .