How does one define a single page to be \raggedbottom
? Or, for completion's sake, \flushbottom
?
Background
In a comment to a related answer, Ben Lerner provided the following snippet of code to declare a single page to be \raggedbottom
:
\def\oneraggedpage{\raggedbottom\afterpage{\flushbottom}}
When I tried this, it did not work as expected: instead of making a single page \raggedbottom
it made the entire document. Besides, even if this is made to work) this way of doing things assumes that the default state (into which the document needs to return after the page is shipped out) is \flushbottom
, which may or may not be the case (cf. \ensuremath
).
So the question is, what is the best way to scope the effects of \raggedbottom
(or some such) to a single page?
(Apologies for no MWE, but it's difficult to come up with one in this case)
Sample case
If it helps to think about how this could be useful, think of writing a paper in which the references go in an additional page at the end. By default, the last page can be ragged even without \raggedbottom
. But if the last page will have the references, the "final page" of the document itself would be the page before the references.
Maybe in this case (the actual case that motivated me) the changes can be integrated into the bibliography's environment?
\clearpage
just be used to create a single ragged-bottomed page?\clearpage
requires knowing the exact break point.\clearpage
with equal effectiveness, in just about all cases of which I can think.