I noticed package
cutwin
seems to have issues with linespacing (see above image). After searching, several others also noticed this:
Linespacing with cutwin,
Misalignment with cutwin,
http://tug.org/mail-archives/texhax/2011-September/018163.html
In https://tex.stackexchange.com/a/133691 it is remarked that packages wrapfig
, picins
, cutwin
, etc. do not always work well with vertical spacing.
I chose for cutwin
as an often opted solution to manually position images and wrap text around them. Particularly in/near lists, since wrapfig often fails here. I am slightly annoyed I devoted time and energy in learning cutwin
only to see that this package has its own issues. So my questions are:
(1) Can cutwin
's erroneous vertical spacing be fixed?
(2) If the answer to (1) is no, does the solution of https://tex.stackexchange.com/a/59106/120150, using cutwin
and parshape
, handle vertical spacing well?
(3) If the answer to (2) is no, what is the cleanest solution to wrap text around an image? (image does not need to float) I have seen several solutions come by but not yet a consensus about what is best. See for example
https://tex.stackexchange.com/a/208436,
Will it ever be possible to use wrapfig with an enumerate or itemize environment?,
https://www.abhilashnair.com/troubleshooting/how-to-use-wrapfig-wrapfigure-in-an-enumerated-or-list-environment-in-latex/,
https://tex.stackexchange.com/a/232110
MWE:
\documentclass[11pt, a4paper]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{mwe}
\usepackage{cutwin}
\begin{document}
\section*{Test}
\lipsum[2]
\renewcommand*{\windowpagestuff}{%
\centering\bfseries
Text \\ in \\ Window \par}
\opencutright
\begin{cutout}{2}{0.5\textwidth}{0pt}{7}
\lipsum[1]
\end{cutout}
\lipsum[2]
\end{document}