# Wrapfigure environment not placing figure within text (inside proof environment)

I wanted to use the wrapfigure environment to wrap text around a figure, inside a adjustwidth environment inside a proofenvironment, but the following code

\begin{proof}

note: package hyperref had to be loaded last (with rare exceptions) in the preamble.
• I think you should add a % after \end{minipage}. – Peter Grill Mar 24 '18 at 7:32
• @Anakhand, unfortunately you can't have all :-). you can try to enclose proof content into table with width narrow than text width, but \centering doesn't work , table stay left aligned), so you need to push to center by \hfil. but this is not main problem: symbol for end of proof is centered and not right aligned. you can try to use \adjustwidth macro (which has effect to the first paragraph in your proof) in combination with tabularx in which you have paragraphs with image (not tested). maybe this will give you satisfactory result. – Zarko Mar 24 '18 at 21:36
• @Zarko Okay, thanks anyway. Since I had to add another adjacent drawing next to the original one, I went for the ordinary figure environment in the end of things (i.e. without text wrapping). I guess in LaTeX it's all about tradeoffs – Anakhand Mar 24 '18 at 21:50
• @Anakhand, this is the best suggestion. maybe once some tex guru provide at least some explanation why insbox cause those problems. – Zarko Mar 24 '18 at 21:54