avatar
N*D
1
I am using \begin{algorithm}... \end{algorithm} environment to write an
algorithm. However, my algorithm is very long and one page is not enough.
Currently, the second half of the algorithm is simply trimmed. I was
wondering how to put algorithm into multiple pages, just like longtable and
supertabular.
Here is an example of my code.
\begin{algorithm}
\caption{Algorithm $\mathcal{A}$} \label{Algorithm:ClusterSVM}
\begin{algorithmic}[1]
\REQUIRE A dataset $\mathcal{D}
\STATE Initialize th
avatar
b*y
2
Google like [allowpagebreaks] latex algorithm, not very sure but similar
options available in beamer, which is called [AllowFrameBreaks]

and

【在 N**D 的大作中提到】
: I am using \begin{algorithm}... \end{algorithm} environment to write an
: algorithm. However, my algorithm is very long and one page is not enough.
: Currently, the second half of the algorithm is simply trimmed. I was
: wondering how to put algorithm into multiple pages, just like longtable and
: supertabular.
: Here is an example of my code.
: \begin{algorithm}
: \caption{Algorithm $\mathcal{A}$} \label{Algorithm:ClusterSVM}
: \begin{algorithmic}[1]
: \REQUIRE A dataset $\mathcal{D}

avatar
N*D
3
Thanks a lot!
After some google, I usej the package algorithmicx bundle found here http://www.tex.ac.uk/cgi-bin/texfaq2html?label=algorithms to solve this issue. There is a command pair called \algstore and \algrestore that can be used to split an algorithm into two.
I haven't tried yours, but it might work too.
Thanks again!

【在 b***y 的大作中提到】
: Google like [allowpagebreaks] latex algorithm, not very sure but similar
: options available in beamer, which is called [AllowFrameBreaks]
:
: and

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。