Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 right. 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.)

share|improve this question
2  
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

2 Answers 2

up vote 7 down vote accepted

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:

enter image description here

share|improve this answer

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

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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