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:
This LaTeX tip relabels floats produced by the algorithm package from Algorithm to Procedure using the \floatname command, without changing the algorithm body itself.
It is handy when a venue or style guide expects a particular caption label. The same \floatname approach works for renaming other float types too.
Comments
Post a Comment