I am writing a beamer presentation and I keep trying to add an algorithm to it with no success.
I have:
\begin{frame}{Proposed Solutions}{Curve Projection}
\begin{block}{}
Ellipses are implicit surfaces, we can use their gradient to our advantage!
\end{block}
\begin{minipage}{0.45\textwidth}
\begin{algorithmic}[1]
\end{algorithmic}
\end{minipage}
\end{frame}
Which fails to compile with error
Something's wrong, perhaps a mising \item. \end{frame}
Removing the algorithm environment lets it compile,
Adding anything to the algorithm environment. eg:
\begin{frame}{Proposed Solutions}{Curve Projection}
\begin{block}{}
Ellipses are implicit surfaces, we can use their gradient to our advantage!
\end{block}
\begin{minipage}{0.45\textwidth}
\begin{algorithmic}[1]
\Procedure{Find\_distance}{$p_1, p_2$}
\end{algorithmic}
\end{minipage}
\end{frame}
Does not fix the problem
[fragile]
frame option. If this does not help, please add a MWE