I am using the figure*
environment for twocolumn images in a twocolumn text document. When placing a onecolumn figure at the end of page one, i want the twocolumn figure (light blue) at the top of page two. But instead it gets to the next page.
I am using the following code:
\documentclass[twocolumn,11pt]{article}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\lipsum[1-4]
Cu affert noster perfecto sit, ex eirmod perfecto senserit nam, est quem
ipsum ei. Qui minim dolor dicam ad, ea dicant nostrud eleifend has, pro
ad commodo detracto suscipit. Cu affert noster perfecto sit, ex eirmod
perfecto.
\begin{figure}[hb!]
\includegraphics[width=\columnwidth]{example-image}
\caption{random text small caption random text}
\end{figure}
\begin{figure*}[ht!]
\includegraphics[width=\textwidth]{example-image}
\caption{random text small caption random text}
\end{figure*}
\lipsum[1-4]
\end{document}
How do i prevent this?
\begin*{figure}
will start the undefined environment*
and then typeset the wordfigure
is that really what you have in your source?figure*
then you should just need to move the figures earlier in the source, but without an example hard to give more specific advice.\lipsum[1-2]
, then the two figures, then\lipsum[3-4]
. Anyway, your code, as it stood, did not compile, because it uses two PDF files we don’t have.