0

I am trying to put an image in my LaTeX file using this method:

\begin{figure}[!htbp]
 \centering
\includegraphics[width=\textwidth]{Figure 1.png}
\caption{....}
\label{Figure 1.}
\end{figure}

My document class is \documentclass{ieeeaccess}

The issue is that the image keeps displaying over the text when I want it to be on top of the page, and its width is equal to the text width. What am I doing wrong?

This is what happens when I use the above code

  • 3
    as you show no example it is hard to guess your problem, if you mean you have 2 columns and this is over-printing the second column, replace \begin{figure}[!htbp] by \begin{figure*} – David Carlisle Mar 31 '23 at 19:01
  • Have you tried replacing \includegraphics[width=\textwidth]{Figure1.png} with \includegraphics[width=\columnwidth]{Figure1.png}? – Mico Mar 31 '23 at 19:08
  • To provide us with code we can test, you can use \includegraphics{example-image}. – Teepeemm Mar 31 '23 at 19:27
  • By way of clarification: You mean that the image is displaying just above the text, rather than overlapping it as a layer, yes? – rallg Mar 31 '23 at 20:20
  • @rallg I edited to include an example of what happens when I try to add the image, I want to have the image display on the same spot at the top of the page without overlapping with the text under it. – CyberSham Mar 31 '23 at 22:58
  • @DavidCarlisle I tried your solution but it still kept displaying on top of the text, I edited the post to show the issue. – CyberSham Mar 31 '23 at 22:59
  • no you would not get that from figure* naturally you get that from figure as you specify a single column figure with an image as wide as 2 columns – David Carlisle Mar 31 '23 at 23:02
  • @DavidCarlisle oh my god it worked! I changed to figure* only in begin but forgot to change the end hence why it was still showing the error. I fixed it and it worked! thank you!! – CyberSham Apr 01 '23 at 00:06

0 Answers0