## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Issue with wrapped Figure

Information and discussion about graphics, figures & tables in LaTeX documents.
andreamizzi
Posts: 1
Joined: Sat Mar 23, 2013 1:35 pm

### Issue with wrapped Figure

Hello,

I'm trying to use this macro for wrapping text around a figure.
\newcommand{\figuremacroN}[3]{   \begin{wrapfigure}{l}{0.5\textwidth}     \centering     \includegraphics[width=0.48\textwidth]{#1}     \caption[#2]{{\small\textbf{#2} - #3}}     \label{#1}   \end{wrapfigure}}

\figuremacroN{Figure3}{Comparison A and B}{\label{file1_figure3}They are different}

Instead of wrapping the figure it prints "l0.5" left of the figure in the PDF and not the caption (see attachment). What am I doing wrong?

Attachments
wrapfigureerror.png (154.05 KiB) Viewed 1004 times
Last edited by localghost on Sat Mar 23, 2013 2:01 pm, edited 1 time in total.
Reason: Source code has to be tagged as such to keep a post clear and legible (see Board Rules).

Tags:

cgnieder
Site Moderator
Posts: 1973
Joined: Sat Apr 16, 2011 7:27 pm
Location: Germany
Contact:
Hi andreamizzi,

Welcome to the LaTeX community!

Could you please complete your code snippet into a complete (i.e. compilable) minimal working example and possibly attach a graphic file to your post so we can test and reproduce the erroneous behavior?

Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim