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
addmarginfromKOMAscript. It does the job, but I get anoverfull hboxwarning 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
enlargethispagenoraddlinesworks inside thetableenvironment. 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?
\makebox[0pt[]{...}vertical can also be ignored so long as you have space between the page head and page foot, or if they are blank no reason why vspace should stop you centering in the available space.vspace? To center it vertically I have to know the size of the vspace, right?\vspace*{\fill}above and below which will center vertically just as\hspace*{\fill}to left and right centres horizontally, so then you just need to arrange that the box is whatever size fits but you should know in advance the distance between your page head and foot.