Tuesday, February 22, 2022

Rename Algorithm to Procedure in LaTeX

If you want to change the section name from Algorithm to Procedure, you just need to use the \floatname command while the code remains unchanged.

The code for an algorithm:
\begin{algorithm}
\caption{Test}
  \begin{algorithmic}[1]
    \State Hello!
  \end{algorithmic}
\end{algorithm}
Output:

Now to change the label, add the following command before \begin{document}.
\floatname{algorithm}{Procedure}
The code remains the same.

Output:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.