I am trying to wrap text around a figure, but I would like this figure to be centered in the middle of the page. I have been using the wrapfig package. My code is below.
\begin{wrapfigure}{r}{0.5\textwidth}
\centering
\includegraphics[width=0.7\textwidth]{AvgReLease.png}
\caption{AvgReLease}
\end{wrapfigure}
My code aligns the image to the right. Is it possible to align the image in the centre of the page instead, such that it separates two bodies of text (say, in between paragraphs)? I have also tried to use the code below,
\begin{wrapfigure}{R}{0.5\textwidth}
\textbf{\begin{figure}[htp]
\centering
\includegraphics[width=10cm]{AvgReLease.png}
\caption{Average Re-Lease (days) vs Storage Type}
\label{fig: Average Re-Lease vs Storage Type}
\end{figure}}
\end{wrapfigure}
but the image appears on a different page.
figureenvironment, since that lets your image go elsewhere. – Teepeemm Jul 02 '20 at 02:41\textbf? Additionally, AFAIR cannot have a figure env (a float) inside awrapfigure, just remove thefigureenvironment. – daleif Jul 02 '20 at 08:24