Take the 2-minute tour ×
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.

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
1  
Use \resizebox rather than \scalebox –  egreg Oct 24 '13 at 14:33
1  
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
1  
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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.