O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – embedding a picture within text

We shall modify our picture embedding an example. We would like the picture to appear on the left side, accompanied by the body text on the right side:

  1. In our example, additionally load the wrapfig package:
    \documentclass[a5paper]{article}
    \usepackage[english]{babel}
    \usepackage{blindtext}
    \usepackage[demo]{graphicx}
    \usepackage{wrapfig}
    \pagestyle{empty}
    \begin{document}
  2. Begin an unnumbered section, place a wrapfig environment within some filler text:
    \section*{Text flowing around a picture}
    \blindtext
    \begin{wrapfigure}{l}{4.4cm}
    \includegraphics[width=4.4cm]{test}
    \caption{Test figure}
    \end{wrapfigure}
    \blindtext
    \end{document}
  3. Typeset and look:

What just happened?

The wrapfigure environment understands ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required