brotherbobby
- 749
- 169
- TL;DR Summary
- The wrapfigure environment in ##\rm{LaTeX}## is leaving the text curtailed, long after the figure (image) has ended. The remaining text of the article is now permanently short from the right hand side, to the extent to which the wrapfig environment was defined using the \textwidth option. While the left hand margin remains, the right hand margin has shrunk to the defined dimensions of the environment (wrapfig). Details are below.
Problem :
I copy and paste the image of the problem to the right.
I put the wrapfig environment before the section marked "Attempt" in order to bring the image as high up as possible.
As you can see, the following section (titled "Doubt") along with its contents are all curtailed long after the picture has ended along with its caption. The same moves on to the next page.
Code :
I copy and paste the code below.
Code:
\begin{wrapfigure}[10]{r}{0.3\textwidth}
\centering
\includegraphics[width=0.3\textwidth]{Problem.png}
\caption{Cannon exploding}
\end{wrapfigure}
\section*{Attempt}
I start by putting the image of the problem to the right. \\
A cannon of mass $M$ moving with a velocity (say) $v$, splits into two parts of masses $kM$ and $(1-k)M$ following an explosion that generated an amount of energy $E$. The second piece falls straight to the ground while the first piece of mass $kM$ continues in the same direction with a velocity $v'$. What is the velocity ${\color{red}{v' =?}}$\\
Using momentum conservation, we have $Mv=kMv'\Rightarrow v=kv'\qquad (1).$
As you can see, the wrapfig environment was declared and ended before the section titled "Attempt".
Request :
Where am I going wrong?