Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

algorithm2e with 'ruled' but with caption underneath?

瀏覽次數:90 次
跳到第一則未讀訊息

Gabriel

未讀,
2011年9月6日 上午9:54:522011/9/6
收件者:
I would like to present an algorithm in my article. For that I am
using the algorithm2e package (and I have used it for many years).

I want to use the 'ruled' option, i.e., I load the package like this:
\usepackage[ruled,noend,noline,slide]{algorithm2e}

Unfortunately, with the 'ruled' option, the algorithm2e package puts
the caption above the pseudo code.

However, I want the caption to appear underneath the pseudo-code, just
like any other caption in figures or tables.

Does anybody know, what I need to change in the style file to make
this possible?
Or can I achieve it with the help of the float package?
(Note that I still would like to have a kind of algorithmic
environment like this
\begin{myalgorithm}
\If{...}
\catiopn{An algorithm}
\end{myalgoithm}
)

I am using the latest version, i.e., 4.01, of algorithm2e.sty.

Thanks a lot in advance.

Marco Daniel

未讀,
2011年9月6日 上午11:48:232011/9/6
收件者:
0 則新訊息