I'm writing a document with a wrapfigure
and its part looks like this:
~~~~~~~~~~~~~~~~~~~~~~
~~~~~~
~~~~~~~~ ________
~~~~~~~~~~ | |
~~~~~~~~~~ | Figure |
~~~~~~~~~~ |________|
~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~
How can I reduce the margin at the top of the figure by \baselineskip
so that it looks like this:
~~~~~~~~~~~~~~~~~~~~~~
~~~~~~ ________
~~~~~~~~ | |
~~~~~~~~~~ | Figure |
~~~~~~~~~~ |________|
~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~
Here is a MWE with a simplified figure:
\documentclass{article}
\usepackage{wrapfig}
\usepackage{lipsum}
\usepackage{tikz}
\begin{document}
\lipsum[1]
\begin{wrapfigure}{r}{0pt}
\begin{tikzpicture}[inner sep=0pt, outer sep=0pt]
\node (A) {A};
\node[above right] (B) at (A.north east) {B};
\draw (A.south west)--(B.north east);
\end{tikzpicture}
\end{wrapfigure}
\lipsum[2]
\end{document}