SX: compatibility between picinpar and hvfloat
https://tex.stackexchange.com/questions/454156/compatibility-between-picinpar-and-hvfoat
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{picinpar}
\usepackage{caption}
\begin{document}
\begin{figwindow}[1,c,{
\includegraphics[width=4.0cm,draft]{example-image.png}
},{figwindow in a text}\label{fig}]
\lipsum[1]
\end{figwindow}
\end{document}
Edited by Axel Sommerfeldt