For an IEEE submission I am not allowed to use algorithm package. They recommend to use algorithmic package. I am not able to add caption in the algorithmic package. This and this answer solves the problem using algorithm package, which is of no use to me.

I am allowed to use algorithmicx package too. I am using IEEEtran file.


The following code defines \algcaption{<caption>} that sets a "pseudo-caption" for an algorithm:

enter image description here


\usepackage{lipsum}% Just for this example

% A regular caption without a number

% If you need an algorithm counter, then use the following code definitions instead
% \newcounter{algorithm}
% \newcommand{\algcaption}[1]{%
%   \par\noindent
%   \refstepcounter{algorithm}%
%   \textbf{Algorithm \thealgorithm:}
%   #1\par
% }


\title{A title}
\author{An author}


\section{A section}\lipsum[1]

\algcaption{This is an algorithm}

  \STATE Some statement
  \IF{some conditional}
    \STATE Another statement


You can also add a numbered caption using the code above (uncomment as necessary).

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.