I'm using wrapfig
to put a small figure at the start of each paragraph. For the first paragraph of the page, this lines up neatly with the top of the text. But for subsequent paragraphs, the figure lines up with the second line:
\documentclass{article}
\usepackage{lipsum, wrapfig}
\begin{document}
\begin{wrapfigure}{l}[1cm]{2cm}\rule{2cm}{2.67cm}\end{wrapfigure}
\lipsum[1]
\begin{wrapfigure}{l}[1cm]{2cm}\rule{2cm}{2.67cm}\end{wrapfigure}
\lipsum[3]
\end{document}
gives
The second box here should line up with "Nulla" (not "lutpat") in the same way as the first does with "Lorem".
Using the optional argument to specify the number of shortened lines does not change the actual picture placement at all. Nor does \raisebox
, although I'm not sure why. And nor does placing the wrapfigure
environment any earlier in the text (obviously not possible with lipsum
, but I've tried putting this environment at several places through the preceding paragraph with no effect on the position of the figure).
This document is actually being typeset in LuaLaTeX, to use both ttf fonts and microtype
, but the error is reproducible in pdfLaTeX (e.g., the MWE above). Obviously an automagic answer would be best, but there are sufficiently few of these pictures that a solution involving tweaking some length by hand would still be very helpful.