[Tex/LaTex] Fit a table into one page

tables

I have a table that is very wide. Now I want to force it into one landscape page. I already set the page orientation to landscape but now I don't know how to force it into one page with scaling. Any hints?

Best Answer

You can use the adjustbox package with:

\begin{adjustbox}{width=\textwidth,totalheight=\textheight,keepaspectratio}
   % your table
\end{adjustbox}

You can also use the graphicx package with:

\setkeys{Gin}{keepaspectratio}
\resizebox*{\textwidth}{\textheight}{your table}

but adjustbox is more recommended. It doesn't read the whole table as an argument.

You can also add \rotatebox{90}{..} or the angle=90 option to the adjustbox environment to implement the rotation.

You might need to exchange \textwidth and \textheight because of the landscape mode. Also you should use an approximate font size first, e.g. try \tiny or \scriptsize and let the rest be done by scaling. You shouldn't scale the normal font size to a very small size. Many fonts are differently designed in different sizes, so using the closest possible size yields the best results.

Related Question