[OS X TeX] Graphics question

Alan Munn amunn at gmx.com
Wed May 4 02:28:06 CEST 2011


On May 3, 2011, at 7:30 PM, Jada Watson wrote:

> Hi All, 
> 
> This is probably a very simple question for you guys, but I've been reading a document by Keith Reckdahl about importing graphics, and I am not finding the answer I need. 
> 
> I am trying to figure out how to align a .jpg with the right hand margin of a page, and be able to have text run beside and then underneath it. 
> 
> Is this possible in LaTeX? Can anyone offer any advice?


Use the wrapfig package:

\documentclass[11pt]{article}
\usepackage{wrapfig}
\usepackage{lipsum} % for dummy text
\usepackage[demo]{graphicx} % demo option for dummy images

\begin{document}

\lipsum[1]
\begin{wrapfigure}{r}{3in}
\includegraphics[width=3in]{test.jpg}
\end{wrapfigure}
\lipsum[2]

\end{document}
-- 
Alan Munn
amunn at gmx.com







More information about the macostex-archives mailing list