I have a large table and want to put it on a page with smaller margins. A quick and dirty way would be
\clearpage
\newgeometry{margin=1cm}
\begin{table}
...
\end{table}
\restoregeometry
However, this doesn't allow the table to float anymore.
I read the following Q&A: Standard way of handling oversize pages? But found 2 problems:
-
for the horizontal adjustment I try use
addmargin
fromKOMA
script. It does the job, but I get anoverfull hbox
warning for every single line of the table, which makes log files really unreadable. Also it only changes the width of the table but not the table caption. -
for the vertical adjustment neither
enlargethispage
noraddlines
works inside thetable
environment. And just doing\vspace*
has the disadvantage that the table cannot be vertically centered on the page.
the perfect solution would be to have something like \newgeometry
but within the floating environment. Is there anything like this?
Best Answer
Load the
changepage
package, and use this code to adjust locally the margins: