[Tex/LaTex] Weird text wrapping problem (wrapfigure, wraptable) – trying to wrap text around an image and a table

tableswrapfigure

I'm pretty new to LaTeX – I've done a few very basic homework assignments but this is my first time trying to publish a lab report. I've sort of mickey-moused a template that works but I'm having trouble wrapping text around two figures, a table and an image, at the same time. It seems to only want to wrap one or the other.

Here is the public project file –

https://www.sharelatex.com/project/56198221357a320e5b8c8d5e

The issue I'm having is getting text to wrap around the second image and the table at the same time. You'll probably notice a weird out of place "c" next to the table – once that is deleted the text skips the table entirely and only wraps around the image at the bottom. I've been screwing around with it all day and I haven't been able to figure it out.

\lipsum
\begin{wraptable}{l}{90mm}
....
\end{wraptable}
\begin{wrapfigure}
....
\end{wrapfigure}

If I put some text between \end{wraptable} and \begin{wrapfigure} then \lipsum wraps fine, albeit with whatever random test I add between the two. When there is no random text, \lipsum either wraps one or the other depending on where it's placed (before or after)

Best Answer

Wrapping something should be in a paragraph. Hence critical part of your file should be (corrected in your file now):

\lipsum
\begin{wrapfigure}{l}{.525\textwidth} %this figure will be at the right
    \includegraphics[width=.525\textwidth]{T vs R - tungsten filament.png}
    \begin{center}
Figure 3
\end{center}
\end{wrapfigure}

%\lipsum

(Observe the position of `\lipsum).

BTW: Replacing all text \\'s by blank lines would help (La)TeX to correct dividing paragraphs into lines.

Edit New version:

$\,$
\begin{wrapfigure}{l}{.525\textwidth} %this figure will be at the right
    \includegraphics[width=.525\textwidth]{T vs R - tungsten filament.png}
    \begin{center}
Figure 3
\end{center}
\end{wrapfigure}

\lipsum
Related Question