记录一下latex Elsevier模板和其他模板算法包出现的问题
1 使用Elsevier模板时,包的组合如下:
2 使用其他模板时,包的组合如下:
最终效果如下:
源代码:
\begin{algorithm}
\setcounter{AlgoLine}{0}
\scriptsize
\LinesNumbered
\caption{}\label{}
\KwIn{}
\KwOut{}
\;
\;
\For{}{
\eIf{}{
\;
}
{
\If{}{
\;
}
}
}
\If{}{
\textbf{Output} \;
}
\textbf{Output} \;
\end{algorithm}