原因分析:编写algorithmic伪代码时报错:
LaTex error: \caption outside float.
解决方案:
在\usepackage部分加入如下包:
\usepackage[algo2e,ruled,vlined]{algorithm2e}
在编写时:
\begin{algorithm2e}
\end{algorithm2e}
参考链接:https://blog.csdn.net/hyluglare/article/details/104827049