TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, this is a case of "It's LaTeX, surely there's a better way of doing this."

I've tried using tabular*, tabularx, and a few other things, but I don't quite get what I'm doing wrong with any of them. My current (working) code looks like

    lots of cool text that is long and needs wrapping
    a very small fixed-width object,
    in my case a graphic made with the igo package

My trouble is with my column definitions. I had to choose the columnwidths by hand. I just want the whole tabular to span the current columnwidth, with one column as shrunk as possible (the second) and the other as wide as possible. This made me think of using tabular*, but the examples I found with \fill did not work with line wrapping.

Is there a better way of doing this?

share|improve this question

migrated from stackoverflow.com Apr 8 '12 at 20:40

This question came from our site for professional and enthusiast programmers.

up vote 6 down vote accepted

I think you want tabularx package and

  lots of text & \includegraphics{...}

Or as pointed out in the comments, you were using vertical centred column so


  lots of text & \includegraphics{...}
share|improve this answer
Or if you want the X column to be like an m column, add \renewcommand{\tabularxcolumn}[1]{>{\raggedleft}m{#1}} – Alan Munn Apr 8 '12 at 20:57
@AlanMunn, thanks yes I extended my answer – David Carlisle Apr 8 '12 at 21:03
This is definitely fixing bits of what I was doing wrong with tabularx! Thanks! I'm still working out some silly behaviors, but I think it's stuff I can figure out with how graphics work. – user1320684 Apr 8 '12 at 21:27
Awesome! I managed to find another thread solving the graphics issues with \vcenter, and now it all works very prettily! – user1320684 Apr 8 '12 at 21:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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