dimanche 30 novembre 2014

How to change algorithm caption to figure caption ouside of the box?


I'm using IEEEtran with \usepackage[boxed,linesnumbered]{algorithm2e}. I have one pseudocode/algorithm. My caption inside the algorithm environment appears as "Algorithm 1". Since I only have one algorithm, I think I should be using the figure caption instead. What do you think and how can I force my caption to appear as a figure caption?


To provide information needed for the comments here is a snippet of my code:



\IncMargin{1em}
\begin{algorithm}
\DontPrintSemicolon
\Indm
\KwInputs{\hspace*{0.3em}sth}
\KwOutput{sth}
\Indp
this is the body of my algo.
\caption{this is my caption.}
\end{algorithm}
\DecMargin{1em}




Aucun commentaire:

Enregistrer un commentaire