For the following MWE, why is the first image overlayed with the text when using \lipsum instead of pasting dummy text?
And how to fix the other two images to be placed properly next to their respective texts?
\documentclass{exam}
\usepackage{adjustbox,wrapfig,lipsum}
\newenvironment{mywrapfigure}
{%
\setlength{\columnsep}{15pt}%
\wrapfloat{figure}%
}
{\endwrapfloat}
\begin{document}
\begin{mywrapfigure}{r}{0.3\linewidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\end{mywrapfigure}
\lipsum[1]
\bigskip
\begin{questions}
\question
\begin{mywrapfigure}{r}{0.3\linewidth}
\includegraphics[width=\linewidth]{example-image-b}
\end{mywrapfigure}
\lipsum[1]
\bigskip
\begin{parts}
\part[4]
\begin{mywrapfigure}{r}{0.3\linewidth}
\includegraphics[width=\linewidth]{example-image-c}
\end{mywrapfigure}
\lipsum[1]
\end{parts}
\end{questions}
\end{document}

lipsumand useduckumentsinstead with\blindduck. If you then use\blindduck[1-]it will then use only one paragraph but correctly add a\parafter it. – Skillmon Dec 27 '19 at 22:06\questionor\partstuff usingwrapfig. Take a look here: https://tex.stackexchange.com/questions/476381/ – Skillmon Dec 27 '19 at 22:13partsand I'm at least somewhat sure that it will not work out of the box inparts. So it might be a good idea to ask a follow up if you need it to work there automatically. – Skillmon Dec 27 '19 at 22:30