2
{\tiny
\restylealgo{boxed}
\begin{algorithm}
%\centering{
\SetLine
\KwIn{$A$. }

\caption{}
%}
\label{algo2}
\end{algorithm}
}

In the caption it is coming as "Algorithm 2:"
Is it possible just Algorithm 2?

6

Use

\SetAlgoCaptionSeparator{}

MWE

\documentclass{article}
\usepackage{algorithm2e}

\begin{document}

{\tiny
\RestyleAlgo{boxed}
\SetAlgoCaptionSeparator{}
\begin{algorithm}
%\centering{
%\SetLine
\KwIn{$A$. }

\caption{}
%}
\label{algo2}
\end{algorithm}
}
\end{document} 

enter image description here

BTW: It is \RestyleAlgo and not \restylealgo, unless you have a very old version of algorithm2e.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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