3
\begin{wrapfigure}{r}
\centering  
\includegraphics{DoorNumbers.png}
\caption{Door assignment}
\end{wrapfigure}

Can anyone tell me what im doing wrong? i get it at the \centering line. thanks in advance.

  • 1
    Welcome to TeX.SE! Have you checked texdoc wrapfigure? – Mensch Dec 2 '14 at 19:42
5

The wrapfigure environment has two mandatory arguments; you are missing the one used for the width:

\begin{wrapfigure}{r}{\linewidth}
\centering
\includegraphics{DoorNumbers.png} 
\caption{Door assignment}
\end{wrapfigure}

Instead of \linewidth, use the length that better suits your needs.

  • Never mind, i already found it, thanks for your answer! – Pim Dec 2 '14 at 19:43
  • @Pim Ah, OK! Don't forget that you can accept the answer if you consider it solved your problem. – Gonzalo Medina Dec 2 '14 at 19:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.