I'm trying to create a biography section for a list of authors am crammed for space. So when declaring the wrapfigure to provided text wrapping around each author's tessellated bio photo, I need to reduce the number of lines wrapped.
Here is a minimal example:
\documentclass[english]{article}
\usepackage{wrapfig}
\usepackage{graphicx}
\usepackage{babel}
\usepackage[pangram]{blindtext}
\begin{document}
\section*{Biography}
\begin{wrapfigure}[5]{L}{25mm}
\includegraphics[width=25mm,height=25mm,keepaspectratio]{example-image}
\end{wrapfigure}
\textbf{Author Alpha} \Blindtext[1][13]
\begin{wrapfigure}[5]{R}{25mm}
\includegraphics[width=25mm,height=25mm,keepaspectratio]{example-image}
\end{wrapfigure}
\textbf{Author Beta} \Blindtext[1][13]
\begin{wrapfigure}[5]{L}{25mm}
\includegraphics[width=25mm,height=25mm,keepaspectratio]{example-image}
\end{wrapfigure}
\textbf{Author Gamma} \Blindtext[1][13]
\begin{wrapfigure}[5]{R}{25mm}
\includegraphics[width=25mm,height=25mm,keepaspectratio]{example-image}
\end{wrapfigure}
\textbf{Author Delta} \Blindtext[1][13]
\end{document}
However it appears that the author images are not centered with the text wrap boundary. I would like to align the images at the top of the boundary to make the word wrapping as tight as possible.
Best Answer
As there are not floats, I suggest you the set of plain TeX macros provided by
insbox
, which does a better job in this case. It defines a\InsertBoxL{number of non-shortened lines at the beginning of the paragraph}{object inserted}[optional: number of supplementary shortened lines (in case TeX makes a wrong calculation of necessary sorter lines)]
command, and a similar\InsertBoxR
. I added an example code to fine-tune the vertical position of the inserted graphics, playing with the optional arguments of\raisebox
: