當(dāng)圖片在分欄命令中時(shí), 圖片無(wú)法顯示,可以在文章開(kāi)頭定義一個(gè)新的環(huán)境,
\makeatletter%用于連接公式編號(hào)?
\newenvironment{figurehere}?
????{\def\@captype{figure}}?
????{}?
\makeatother%用于連接公式編號(hào)
文中可以這樣寫(xiě):
? ? \begin{multicols}{2}
? ? \begin{figurehere}[ht]%替換掉之前的begin{figure}[ht]
? ? %由于分欄后圖片不能顯示出來(lái),所以引用一個(gè)新的環(huán)境來(lái)添加圖片
? ? %該環(huán)境已經(jīng)在文章最開(kāi)頭定義好了
? ? \centering% 圖片居中
? ? \includegraphics[width=0.6\columnwidth]{graphics/CO2_V0_1.pdf}
? ? \caption{$CO_{2}$譜線(xiàn)選擇}
? ? \label{fig:CO2}
? ? \end{figurehere}%替換掉之前的end{figure}
\end{multicols}
參考:
http://softlab.sdut.edu.cn/blog/subaochen/2017/07/%E8%AF%A6%E8%A7%A3newenvironment%E5%91%BD%E4%BB%A4/