[Tex/LaTex] Change page margins for table

addlinesmarginstables

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:

  1. for the horizontal adjustment I try use addmargin from KOMA script. It does the job, but I get an overfull 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.

  2. for the vertical adjustment neither enlargethispage nor addlines works inside the table 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:

\begin{table}
\begin{adjustwidth}{–some length}{–some other length}
................
\end{adjustwidth}
\end{table}
Related Question