I would like to scale an image to the maximum size possible while still staying on a certain page with text on the same page.
Is it possible to let latex do the sizing work by saying something like \includegraphics[width=\vfill]{foo}?
Textheight
I tried textheight but it returns - as expected - the textheight of a page and therefore the image will consume an entire page which is not the wanted behavior. The wanted behavior is that the image consumes all remaining space on the page where it is placed.
easyfigpackage which provide amin size/max sizefeature. But nothing fully automatic… – NBur Jun 10 '22 at 15:59