Featured Book

LaTeX Beginners Guide

Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 7 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Issue with wrapped Figure

graphicswrapfigAdd tags Information and discussion about graphics, figures & tables in LaTeX documents.

Issue with wrapped Figure

Postby andreamizzi on Sat Mar 23rd, 2013

Hello,

I'm trying to use this macro for wrapping text around a figure.
Code: Select all  •  Open in writeLaTeX
\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}
}


Code: Select all  •  Open in writeLaTeX
\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?

Thanks for your help!
Attachments
wrapfigureerror.png
wrapfigureerror.png (154.05 KiB) Viewed 463 times
Last edited by localghost on Sat Mar 23rd, 2013, edited 1 time in total.
Reason: Source code has to be tagged as such to keep a post clear and legible (see Board Rules).
andreamizzi
 
Posts: 1
Joined: Sat Mar 23rd, 2013

Re: Issue with wrapped Figure

Postby cgnieder on Sun Mar 24th, 2013

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
------------------------------
New German Q&A site about TeX: http://texwelt.de/wissen
System: TeXlive 2013, OpenSUSE 12.3
User avatar
cgnieder
Site Moderator
 
Posts: 1687
Joined: Sat Apr 16th, 2011
Location: Germany


Topic Tags

graphicswrapfig

Return to Graphics, Figures & Tables

Who is online

Users browsing this forum: No registered users and 7 guests