I am trying to insert a figure with a caption into a multicol
article. When the figure was inserted on its own, it was fine: includegraphics[width=0.5cm]{image}
However, when I tried to insert the caption [see below], the caption did not appear anywhere in the article and the figure disappeared.
\documentclass{article}
\usepackage[hmarginratio=1:1,top=30 mm,columnsep=20pt,hmargin=2.5cm]{geometry}
\usepackage[font=it]{caption}
\usepackage{paralist}
\usepackage{multicol}
\usepackage{setspace}
\usepackage{graphicx}
\begin{document}
\begin{multicols}{2}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\begin{figure}[h!]
\caption{Fig.1 xxxxx}
\includegraphics[width=0.5cm]{image}
\end{figure}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\end{multicols}
\end{document}
What might be the issue and how could I fix it?
[h]
. Try[!htp]
otherwise you will need to edit the question to add a small complete document that shows the problem so that we can debug it.twocolumn
option or withmulticol
package?