# How to arrange image and text to appear side by side?

I want to place an image on my document and have it appear, say, on the right part of the page with text flowing on the left. How can I do that with LaTeX? Just like one would do with HTML and images “floating” to the right (or left).

(when searching I found some similar questions which, however, were closed. I'm actually asking the question because I think it is a good question and should have a good answer on the site. Btw, assume I'm not using beamer nor anything fancy.)

-
Full example including minimal Spacing around image for wrapfig. – Yiannis Lazarides May 9 '12 at 19:17
possible duplicate of Wrap text around a tabular – David Carlisle May 10 '12 at 19:49

The wrapfig package is perhaps the best package to provide such functionality. The following is an example of how to use such package

\documentclass{article}
\usepackage{graphicx,wrapfig,lipsum}
%------------------------------------------
\begin{document}
This is where the table goes with text wrapping around it. You may
embed tabular environment inside wraptable environment and customize as you like.
%------------------------------------------
\begin{wrapfigure}{r}{5.5cm}
\caption{A wrapped figure going nicely inside the text.}\label{wrap-fig:1}
\includegraphics[width=5.5cm]{sample}
\end{wrapfigure}
%------------------------------------------
{\lipsum[2-3]
\par
Figure~\ref{wrap-fig:1} is a wrapped figure.
%------------------------------------------
\end{document}


Which produces the following output:

-

The wrapfig package is perhaps the package that provides functionality most like a html/css float.

There are 142 posts returned from a search of this site for wrapfig. Yiannis gives one in his comment above, another useful example is

Wrap text around a tabular

-
Thanks, could you please provide a simple example of usage? (Just want to make this an excellent answer!) – Juan A. Navarro May 9 '12 at 19:17
I wasn't asking for me. I was asking for other people stumbling with this question. – Juan A. Navarro May 9 '12 at 19:32