I am facing an issue with wrapfig, as the figure is close to a page break, so I have to use the R parameter to make it float. I was looking at this answer, but contrary to what it's shown, the float is placed in the center of the next page (instead of the top of the next page as shown). Is there a way to control this? The figure is way too far of its context.
The problem is similar to this code, where the context of the figure is the fourth paragraph of the first page, and the figure shows up in the middle of the second page:
\documentclass{article}
\usepackage{wrapfig}
\usepackage{lipsum}
\begin{document}
\lipsum[1-7]
\begin{wrapfigure}{R}{5cm}
\centering
\rule{3cm}{4cm}
\end{wrapfigure}
\lipsum[1-6]
\end{document}
\end{wrapfigure} !!!\lipsum[1-6]then the!!!make it clear that the image is attached to the immediately following paragraph, starting!!!so this does not appear to be an example of the problem described? – David Carlisle Nov 13 '15 at 14:17texdoc wrapfigpage 2) so if the first para after the page break starts half way down the page that's where it will be. – David Carlisle Nov 13 '15 at 14:32wrapfig. Definitely. – cfr Nov 13 '15 at 14:42