I have a special page for floats (i.e., with [p]).
In my real code it is a longtable in a table. Because of space issues I want to change the margins of the page with that float. How do I set a new geometry only for the float pages?
This is not a duplicate of the linked question as that solution does not work in the case of a float page.
An MWE with a \hrule to indicate the margins of the float page:
\documentclass[a4paper]{article}
\usepackage{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{figure}[p]
\hrule
\caption{A horizontal rule.}
\end{figure}
\end{document}
longtableis for multi-page tables, so it cannot float. You can use something likechangepage.sty. – cfr Feb 04 '18 at 21:17\newgeometryand\aftergeometry. When I place it in the float, nothing happens. By 'special page' I meant using a float with[p]. – Keelan Feb 04 '18 at 21:23floatpackage and[H]option. – Dr. Manuel Kuehner Feb 04 '18 at 21:26longtableshould never be encased inside atable. No exeptions. None. – Mico Feb 04 '18 at 21:28tabulars, if that helps. – Keelan Feb 04 '18 at 21:32longtablein atable" and "thelongtableis not directly in thetable". I suspect I'm not the only one who senses a contradiction... – Mico Feb 04 '18 at 21:35table>multicols>longtable(through a savebox). But I now also havetable>multicols> 2 *tabular, if that's better. I think that if I have a way to get the MWE from my post, with thefigure, to work, I can manage the real case as well. – Keelan Feb 04 '18 at 21:38