I'm trying to include a figure (a pdf chart) in my document and wrap around it, but it's giving me tons of overfull hbox errors. Here is the code:
\documentclass{article}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\lipsum[2]
\begin{wrapfigure}{r}{0.6\textwidth}
\centering
\includegraphics[width=0.55\textwidth]{example-image-a}
\caption{\label{fig:simpres}Residual values plot}
\end{wrapfigure}\lipsum
\end{document}
They go away if I remove the wrapfigure part, but obviously then I lose the ability to wrap around the figure which is important here. Any ideas?


example-imageas the image) that shows the problem and show the log of the posted document (as text from the log file, not as a screenshot) – David Carlisle Sep 10 '20 at 09:34test.tex|5 warning| Underfull \hbox (badness 10000) in paragraph at lines 5--9 test.tex|9 warning| Overfull \hbox (154.66953pt too wide) in paragraph at lines 9--10– leonard Sep 10 '20 at 09:53asdfasfasdfasfasdfasfasdfasfasdfasfasdfasfasdfasdfasdfasdfasdfasdfso you get a bad line break. That is all, it is just a warning not an error,. – David Carlisle Sep 10 '20 at 09:55