1

I started a new document in which I'm working with two columns. I would like to insert figures in a column (using the wrapfig). But,.. text is overlapping my figure. Can someone explain why this happens and how it should be solved?

used Input Output

1 Answers1

2

The wrapfig package is used to allow text to wrap around figures. This is definitely not where latex shines and, also, obviously not what you want here. Just don't use the wrapfig package for this picture and use the usual figure environment:

\documentclass[twocolumn]{article}

\usepackage{graphicx}
\usepackage{lipsum}

\begin{document}
\lipsum[1]
\begin{figure}[htp]
    \includegraphics[width=\linewidth]{example-image-a}
\end{figure}
\lipsum[2-5]
\end{document}

result

edit: From David Carlisle's suggestion. The [htp] tries to position the figure here. If this is not possible, then the second option is tried: top position. If that fails as well, latex will put the figure on a seperate page for figures.

nox
  • 4,160
  • 12
  • 26