0

How can I rename the "floatname" of an algorithm designed by algorithm2e in beamer

\documentclass{beamer}
\usepackage[ruled]{algorithm2e}

\begin{document}
\begin{frame}
\begin{algorithm}[H]
%\floatname{algorithm}{changeThis}
\caption{title}
do something\;
\end{algorithm}
\end{frame}
\end{document}

1 Answer 1

1

To change the name of an algorithm, algorithm2e provides the command \SetAlgorithmName which allows you to adjust the name displayed in the caption, in references and in an optional list of algorithms.

\documentclass{beamer}
\usepackage[ruled]{algorithm2e}
\SetAlgorithmName{algorithmname}{algorithmautorefname}{list of algorithms name}
\begin{document}
\begin{frame}
\begin{algorithm}[H]
\caption{title}
do something\;
\end{algorithm}
\end{frame}
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .