I am trying to add image to page, on the top right corner that contains couple of lists. I'm using wrapfigure package therefore i want text below image. However when image is inserted where i want, there is empty space under the image, same width as image,for the rest of the page. Its like it failed to wrap text around the image and pushed all text to the left.
How do i make text to the lef of the image and under the image ?
Here is code i have used
\documentclass{article}
\usepackage{tikz}
\usepackage{wrapfig}
\usepackage{float}
\begin{document}
bla bla bla bla bla bla bla bla
\begin{wrapfigure}{tr}{0.25\textwidth}
\includegraphics[width=0.3\textwidth]{Name of the image}
\caption{Image}
\end{wrapfigure}
\section{Lists}
\subsection{list 1}
\begin{itemize}
\item bla bla
\end{itemize}
\subsection{list 2}
\begin{itemize}
\item bla bla
\end{itemize}
\end{document}
Best Answer
You can always use a
minipage
. In this case, the list and the picture are about the same size, so nothing fancy is needed. The following aligns the top of the picture to the baseline of\section
(the first baseline in the leftminipage
).Here is a fancier case, using a
\parbox
inside an\item
in order to use\hangindent
. The picture is overlaid on top of the list first so that the list can flow past it. The fudge factor -5ex is used to get past the white space above\section
.