使用 algorithm2e 换行

使用 algorithm2e 换行

我有这个算法,它包含一个很长的行,我需要换行,因为当我创建 PDF 文件时它不会完全显示。非常感谢

\begin{algorithm}
\SetAlCapFnt{\scriptsize}
\SetAlCapNameFnt{\footnotesize}
\footnotesize
\caption{Caption}
\label{algorithm-1}
$Here..... I have very long line that I need to be wrapped $\;
 \end{algorithm}

答案1

删除 $

算法会换行,但是公式永远不会换行,即使在标准段落中也是如此。

相关内容