I have a very large(heightwise) figure and would like to fit it on a page with its caption, that I place below (document wide style which I would like to keep, and the figure fills the line anyhow, so placing the caption on the side is not a solution). Is there any way to scale the figure to fit the page with the caption? (I amaware of scalebox, but I would like to avoid scaling the captiontext).
\documentclass{report}
\usepackage{floatrow}
\usepackage[demo]{graphicx}
\floatsetup{style=ruled, footposition=caption, capposition=bottom, heightadjust=object}
\begin{document}
\begin{figure}
\includegraphics[height=1.2\textheight]{dummy}
\caption{this should be in text}
\end{figure}
\end{document}
1.2\textheight
to e.g.0.9\textwidth
, or something like that?tikzpicture
is a little different, wouldn't have hurt to mention that. (Oh, and not that it matters, but I did of course mean0.9\textheight
in my previous comment.)