想出现:
然后你请这样写
\begin{algorithm}[H]
\KwData{this text}
\KwResult{how to write algorithm with \LaTeX2e}
initialization\;
\While{not at end of this document}{
read current\;
\eIf{understand}{
go to next section\;
current section becomes this one\;
}{
go back to the beginning of current section\;
}
}
\caption{How to wirte an algorithm.}
\end{algorithm}
前提是使用了 UESTC Thesis Template 在 overleaf上。
我的在 https://www.overleaf.com/project/60a377a4589757ff72ec735a