multicols环境不能识别figure环境,可以重新定义一个环境:
\newenvironment{figurehere}
{\def\@captype{figure}}
{}
\makeatother%用于连接公式编号
在文中,用figurehere替换掉原来的figure即可。
但是这样不会显示captain,可以用center代替figure来显示图片:
\begin{center}
\centerline{\includegraphics[width=8cm]{x.eps}}
\caption{xxx}
\label{xxx}
\end{center}
这样就可以在分栏环境中正常显示图片和captain了。
后续小问题:在编译时出现报错:
\caption outside float.
在前面的环境配置中加上:
\makeatletter
\def\@captype{figure}
\makeatother
报错可消失。