0

I am using \begin{figure*}[H] since I want my figure to span to the whole page width while on double column page but it is causing the figure to move to a new page (despite using [H] to place the floating image at a precise location. This doesn't happen when I am using \begin{figure}[H] but in that case, I am unable to prevent the image from overlapping with the text in the adjoining column. Is there a way to fix this issue?

PS: Here's the snippet of the code that I am using:

\begin{figure*}[H]
\includegraphics[width=\textwidth]{your-figure-file}
\end{figure*}
7
  • Hi and welcome to TeX.SX. Please try to add a minimal working example (MWE) which is a whole document starting from \documentclass{ and ending in \end{document} So that we can run it on our end and help you?
    – Elad Den
    Commented Dec 14, 2023 at 14:02
  • Also, figure* would normally try to put the figure at the top of the page as it is hard for latex to calculate the boxes when in two columns. You could use multicol package. check out this answer tex.stackexchange.com/a/30988/90297
    – Elad Den
    Commented Dec 14, 2023 at 14:05
  • 2
    figure* does not have an [H] (or [h] option. It can not be here as it has to span at the top of the page Commented Dec 14, 2023 at 14:10
  • For example of use table* or figure* see tex.stackexchange.com/a/704980 .
    – Zarko
    Commented Dec 14, 2023 at 14:11
  • You can go from twocolumn to onecolumn and back using tex.stackexchange.com/questions/329709/… but you still need to put the code in the previous page. Commented Dec 14, 2023 at 15:55

1 Answer 1

2

There are a number of earlier questions that contain the answer, but they also contain so much other information that this answer is hard to find.

The key fact here is that (La)TeX can't backtrack. So if there is already something on the page in the first column, any two-column (starred) float will be forced to a new page. Find a place in the input, between paragraphs, that is definitely still on the previous page, and move the input for the figure* there.

Not the answer you're looking for? Browse other questions tagged .