1

I need to place a figure at the bottom-left of the page and wrap the text around it. The text comes via \input, hence I do not have direct control on where to put the \wrapfig environment within the text.

This process will be done for hundred pages, so I need a way to achieve this without editing into \input text. Each \input text is ensured to not exceed a single page.

What I want to achieve is:

a picture of what i'm trying to achieve

As an example, this code:

\documentclass[a4paper,11pt]{article}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lipsum}

\begin{document}

\noindent
\lipsum[1-4]
\begin{wrapfigure}{l}{0.7\linewidth}
    \includegraphics[width=0.99\linewidth]{example-image}
\end{wrapfigure}

\end{document}

pushes the figure out of the lower border and the text is not wrapped properly:

example of a failed wrapfig

Any suggestions?

3

1 Answer 1

0

What you have should work. You just need to adjust the image and add more text after the image.

Take a look at this: enter image description here

And here is the code:

\documentclass[a4paper,11pt]{article}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{lipsum}

\begin{document}

\noindent
\lipsum[1-3]
\begin{wrapfigure}{l}{0.6\linewidth}
    \includegraphics[width=0.88\linewidth]{example-image}
\end{wrapfigure}

\lipsum[1-3]

\end{document}
3
  • 1
    I don't think this answers the question, the OP wants the cutout at the bottom of the page without inserting the wrapfig within the text sources which come from an external \input your image shows teh insert a line above the bottom, and you have the wrapfig between the lipsum paragraphs Commented Jul 11 at 11:00
  • The OP should move the text he/she wants by the figure after the figure env in LaTeX. Why would Latex do it by default?
    – scd
    Commented Jul 12 at 10:49
  • This is a typical "magazine layout" where the requirement is for the figure to be in a cutout at the bottom of the page and the text content flow round it. In your example, to make the figure come at the requested position you would have to change the markup for the text replacing \lipsum by expanded text and move the wrapfig later so it came lower. The OP wants to avoid that such edits. So at the very least, to answer the question, you should show how to move the wrapfig down two lines have two full width lines in the final paragraph and then the wrapfig runs to the bottom of the page. Commented Jul 12 at 13:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .