# Make two margin notes in left and right of the sameline

I try to do someting like in Margin notes on both left and right? but with wrapfig (or another package which permits it).

The goal is to get two margin notes witch overlap a little bit the main text zone with the text warped around. But the two margin notes have to be in the same line like in this mokup :

The gray zones represent the notes. So, as you see, the notes could have a different size content.

So, for this a made the following MWE:

\documentclass[a4paper,12pt,oneside,french]{article}
\usepackage{wrapfig,graphicx,lipsum}

\begin{document}

\begin{wrapfigure}{l}[2cm]{0.3\textwidth}
\includegraphics[width=\linewidth,height=80pt]{example-image}
\end{wrapfigure}
\begin{wrapfigure}{r}[2cm]{0.3\textwidth}
\includegraphics[width=\linewidth,height=200pt]{example-image}
\end{wrapfigure}
\lipsum[1-4]
\end{document}


But, then, I get a wrong rendering as you can see:

So, how can we get a two margin note overlapping the text zone in one line?

• – Ulrike Fischer Dec 21 '18 at 15:46
• Yes we was in this tread, we can merge this new tread with the old one. But the problem in the answer of the old one is that it assume the two image have the same height, when it’s probable that the two images have a completely different height (the width is always the same). – fauve Dec 21 '18 at 15:54
• The parshape doesn't need to be symmetric, for every line you can decide if and how much you want to cut out on each side. – Ulrike Fischer Dec 21 '18 at 16:01
• Yes, so it need to be set manually. It isn’t possible to detect the height of each side’s box and adapt the parshape setting? – fauve Dec 21 '18 at 20:11
• You could measure the side boxes and calculate the needed parshape. – Ulrike Fischer Dec 21 '18 at 20:20