Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Figure spanning full width of page in two-column article

Tags:

latex

In a IEEEtran latex template, I am trying to put a figure spanning full width of the page. I am doing,

\begin{figure*}[h]
\centering
\setlength\fboxsep{0pt}
\setlength\fboxrule{0.25pt}
\fbox{\includegraphics[width=6.2in]{Figure7}}
\caption{Figure}
\label{f7}
\end{figure*}

This places the image on a new page at the end of the article. How do I place it where it should be? Thanks

like image 325
y2p Avatar asked Oct 26 '10 23:10

y2p


People also ask

How do I make two columns in LaTeX?

LaTeX Multiple Columns Text with two or double columns can be created by passing the parameter \twocolumn to the document class statement. If you want to create a document with more than two columns, use the package multicol, which has a set of commands for the same.


2 Answers

For starters I might try to put the figure* block further up in the document, just to check that LaTeX isn't placing it there for a logical reason.

If that doesn't work, I would remove all extraneous commands in the figure* block to be sure they aren't causing problems.

Finally I might try using a figure that doesn't need resizing, or use [width=0.9\linewidth] just to check; sometimes figures that are "too big" can get bumped to the end of the document.

Edit: You may also try using (temporarily) a different template. For example I know that revtex4-1 has a figure* environment that behaves the way to want, to check if ieeetran is the problem or perhaps if that is part of their style.

like image 169
Joel Berger Avatar answered Sep 22 '22 15:09

Joel Berger


the problem is the [h]. get rid of that, it'll work.

like image 31
Vlad V Avatar answered Sep 20 '22 15:09

Vlad V