2

This question already has an answer here:

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}

marked as duplicate by Johannes_B, Martin Schröder, user31729, ChrisS, Guido Dec 24 '14 at 11:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5
\documentclass[a4paper,12pt]{report}
\usepackage{algorithm}
\floatname{algorithm}{Procedure}
\begin{document}
\begin{algorithm}
\caption{My algorithm}\label{euclid}
\end{algorithm}
\end{document}
  • How to use both algorithm and procedure in a manuscript? – Mishra S Sep 14 '16 at 11:50
  • 1
    @SibaMishra Please ask as a new question. Please be a bit more verbose as well. Thanks :-) – Johannes_B Sep 14 '16 at 19:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.