4

when using \begin{algorithm} in latex for writing algorithms, we will have something like this:

enter image description here

Is there any way to have something else like "Procedure" instead of "Algorithm"?

Edit:

I tried something like is said in this post

\renewcommand{\algorithmname}{Procedure}

but I get this error: algorithmname Undifined

My code is like this:

\documentclass[a4paper,12pt]{report}

\usepackage{algorithm}

\renewcommand{\algorithmname}{Procedure}

\begin{document}

\begin{latin}
\setstretch{1.0}
\begin{algorithm}
\caption{My algorithm}\label{euclid}

\begin{algorithmic}[1]
\Procedure{Building }{M}

\EndProcedure
\end{algorithmic}

\end{algorithm}

\end{latin}
\end{document}
AshKan
  • 951

1 Answers1

7
\documentclass[a4paper,12pt]{report}
\usepackage{algorithm}
\floatname{algorithm}{Procedure}
\begin{document}
\begin{algorithm}
\caption{My algorithm}\label{euclid}
\end{algorithm}
\end{document}
Johannes_B
  • 24,235
  • 10
  • 93
  • 248