TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

Sometimes I find that floats don't fit nicely on a page, so I use

\resizebox{\textwidth}{!}{ <blah blah blah> }

so that the borders match the margins. However, I'm now working on a paper in two-column format (specifically using sigplanconf.cls) and if I use the above command, it stretches the table over both columns.

Is there a way I can find the "proper" \textwidth? As in, a variable that describes the width of a single column.

share|improve this question
up vote 36 down vote accepted

Try \columnwidth as a drop-in replacement for \textwidth.

share|improve this answer
Thanks, that's exactly what I want. – Douglas S. Stones Jul 27 '10 at 6:12

Rather than \columnwidth, the appropriate length to use is \linewidth, which will either be \columnwidth in two-column mode or \textwidth in one-column mode.

share|improve this answer
In ConTeXt, the value for \textwidth seems to take into consideration columns automagically. There appears to be no \linewidth value. – Dave Jarvis Aug 21 '13 at 3:31

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.