LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2009, 03:59 PM   #1
lunarbof
LQ Newbie
 
Registered: Jul 2009
Posts: 3

Rep: Reputation: 0
How to make a figure span multiple column in Latex


Hi,

I am writing a paper with the 2-column style and I have a figure that is too wide to fit on just one column.

The only thing I found so far was that by using \begin{figure*} instead of \begin{figure}, it should work. I found it at http://andrewjpage.com/index.php?/ar...-in-Latex.html

However, when I use the *, my Figure ends up alone on the last page of my paper. This is definitely not acceptable (1 extra page for 1 figure).

Here is the code I use to include my figure:

\begin{figure*}[h!]
\begin{center}
\scalebox{0.7}{\includegraphics[0.5in,7.6in][8.0in,10.4in]{images.eps}}
\caption{Test}\label{Fig_Test}
\end{center}
\end{figure*}

The start of my document looks like:

\documentclass[conference]{IEEEtran}

\usepackage{subfigure}
\usepackage{graphicx}
\usepackage{color}
\usepackage{url}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{multirow}


Am I doing something wrong ?

I also tried this: http://www-h.eng.cam.ac.uk/help/tpl/...icol_hint.html

it does the same as \begin{figure}, that is, put the figure over the text in the second column.
 
Old 08-15-2009, 07:03 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Well you might want to read this too, but chances are there's nothing you wouldn't know already. I'm not sure how big your figure is, but if it is big enough, LaTeX will put it on it's own page, just like it usually does with floats. This is how it should work. If you think LaTeX is not making things right, you should stop and reconsider: are you making things right? LaTeX is pretty good in putting things right, so if it wants to put a figure on it's own page due to the size of it, you have two options: one is to do gimmicks to force the figure where you want it, which means a lot of work and potentially worse readability/looks than should be, and problems when your document changes before the figure, changing the content flow on that page. Second option is to reconsider the float, and change the size of it or perhaps the contents of it, to make it such that it fits (in LaTeX's opinion) where you'd like to see it.

Try the *-version of the figure with a small figure to see if it changes anything, or just cope with the extra page; usually it's not that bad (except for the cases where the float is really small, but in those cases LaTeX ought to put it someplace else anyway), and maybe you could even make it bigger to look better? And if you dislike it being on the last page, put it one (or more) pages earlier in the text, and you should get it between some of last pages instead of after all the other pages.

LaTeX is not about tweaking the outlook yourself, it's about writing the content and letting the program typeset it. If you find yourself spending hours changing little things to get "better" result, you're doing something very much wrong I'd say (maybe consider using Word then). It's highly unprobable that you alone are in a situation where the existing packages can't do what you need the correct way.
 
Old 08-15-2009, 01:37 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Shouldn't it be \begin{figure*}[!h]? (the location of !)
 
Old 08-20-2009, 12:53 AM   #4
justlearning2009
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Latex float tables, images

Check out the section on Floating Bodies (around pg 45). This was a start in clearing up how Latex handles float-images and float-tables etc, after reading your post. I highly recommend reading it.

http://www.ctan.org/tex-archive/info...ish/lshort.pdf

It's from "The Not So Short Introduction to LATEX2"
 
Old 04-11-2011, 04:08 AM   #5
daf64
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Just for the record, I experienced exactly the same problem and solved it by simply adding "t" to the placement specifier list => \begin{figure*}[ht!]
 
Old 04-11-2011, 04:33 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
This mailing list entry suggests using stfloats.sty, and says it's recommended for the ieee class.
http://andrewjpage.com/index.php?/ar...-in-Latex.html

The ieee howto mentioned is here: http://www.ngi2009.eu/IEEEtran_HOWTO.pdf

Last edited by jschiwal; 04-11-2011 at 04:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wrong figure number in latex centguy Linux - Software 4 08-18-2011 08:24 PM
latex, put \begin{figure*} on own page hedpe Programming 4 11-30-2009 05:16 PM
Latex: adding column names to Table of contents Carunkumar Linux - Software 3 09-03-2009 02:04 PM
[SOLVED] Figure placement in LaTeX style sheet. eamesj Linux - Software 1 08-18-2006 02:43 PM
[LaTeX] Centreing a xymatrix in figure environment solarize Linux - Software 3 06-13-2005 01:44 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration