# Size modifier commands and wrapfig

I'm writing my curriculum using the moderncv class and banking style. I'd like to add a small image with the text wrapping around it. To pack everything I'm using the \small{} environment along with wrapfigure, but the text actually covers the figure without wrapping around it. I have no such a problem without using \small{}.

\begin{wrapfigure}[3]{R}{0.2\textwidth}
\vspace{-25pt}
\includegraphics[scale=0.1]{me}
\end{wrapfigure}
\vspace{-20pt}
\small{Rather long text which covers my image.}


Any help would be highly appreciated.

You should not start the paragraph after wrapfig in a new group that ends before the paragraph ends. So remove the {} around {Rather long text which covers my image.} which are just generating a spurious group (they are not delimiting an argument to \small as size commands do not take an argument.
• @Albert I do not understand your comment at all. The usage of \small in the question is wrong and will affect the rest of the document as I comment here. so you can delimit the size change with surrounding group or simply put \normalsize before the next paragraph. Sep 29, 2019 at 11:19
• What I mean is, that directly using \small is not a good solution, as there is no easy way to reset the previous font size after the paragraph. You could explicitly put \normalsize after it, but that is only correct if \normalsize is the correct font size, and breaks once you have a different default font size. I think having the wrapfig and the \small together in an own group would be a much cleaner solution. But then the question is still, how would that work. All I tried so far does not work correctly. Sep 29, 2019 at 13:15
• @Albert as I say you can use \normalsize after the paragraph or put { before the wrapfig and a blank line and } after the paragraph. That is just standard latex markup, not really related to wrapfig at all. You should never have a default size that is different to \normalsize that size should be defined to be the document default, but you can use grouping to automatically restore the previous font) Sep 29, 2019 at 13:19
• Ok, so a construct like \small .... \wrapfig ... \normalsize is the correct way to do it? This was not clear to me. I thought it's better to use \begin{...} ... \wrapfig ... \end{...} or { ... \wrapfig ... }. I tried that (using {...}) but that did not correctly work together with wrapfig. Sep 29, 2019 at 13:50