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

How could I use scalebox to rescale a table such that it fits exactly in the usable page width (i.e., between the margins)? Is there some way in which something such as \hsize could be used as an argument for \scalebox?

share|improve this question
Use \resizebox rather than \scalebox – egreg Oct 24 '13 at 14:33
If your need to fit into two dimensions (i.e., width and height should be maximized keeping the aspect ratio, but not exceed the available space), I suggest the adjustbox package, with provides all this in via a very comfortable interface. – Daniel Oct 24 '13 at 14:35
See if this thread helps: tex.stackexchange.com/q/13809/27635 – karlkoeller Oct 24 '13 at 14:46
But scaling tables produces inconsistent font sizes and should be a method of last resort. – David Carlisle Oct 24 '13 at 14:51
The package adjustbox seems to work for what I'm trying to do. In the table environment, I am initialising the adjustbox environment, which subsequently acts on the tabular environment. The initialisation command for the adjustbox environment is as follows: \begin{adjustbox}{width=\hsize, totalheight=\textheight, keepaspectratio} Given the sheer volume of text in the table, there is no obvious way to contain the table in the page without blunt rescaling of the whole thing, including the text. Thanks for all suggestions! – d3pd Oct 24 '13 at 15:03

Your Answer


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

Browse other questions tagged or ask your own question.