I'm currently writing a paper using the IEEEtran class (which uses the twocolumn option). When inserting this float figur, it is properly placed, but the second column is also aligned vertically with the first one, leaving an ugly gap. Two underfull vbox errors are also thrown (PDFLatex). What could lead to this behavior? How can I further analyze this problem?




   \caption{\small Test}


This is how it looks like

  • 1
    don't do \includegraphics[width=0.5\textwidth,height=10cm]{myNiceFigure} if you specify width and height the figure will distort unless you use keepaapctratio and .5\textwidth is too wide (because of \olumnsep) use \linewidth` or \columnwidth Jul 12 '14 at 14:17
  • I suggest \centering instead of \begin{center} and \end{center} respectively, unless you want some additional vertical spacing above and below the figure.
    – user31729
    Jul 12 '14 at 14:19
  • 2
    The output looks like you used figure* rather than figure please (always) make a complete small document that shows the problem. Jul 12 '14 at 14:21
  • Thanks for the comments, both the centering and the textwidth issue was new to me!
    – vlsx
    Jul 12 '14 at 22:59

Too long for a comment, thus posted as an "answer"...

The following should work, i.e., produce a float that's as wide as a single column. Note that there's no need to use a center environment if you make the graph as wide as possible given the available space (which equals \columnwidth). Don't use 0.5\textwidth to specify the width, since a column is less wide than 0.5\textwidth.

    \caption{\small Caption Text}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.