I would like to use a wrapfigure with enumerate. But it doesn't work.
With this code:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usepackage{wrapfig}
\usepackage{blindtext}
\begin{document}
And now let's do a little test
\begin{wrapfigure}{r}{4cm}
\centering
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,row sep=3em,column sep=4em,minimum width=0em]
{M &N\\
M/N&\\};
\path[-stealth,>=stealth]
(m-1-1)edge node[left]{$p$} (m-2-1)
edge node[above]{$f$}(m-1-2)
(m-2-1)edge[dashed,->]node[below]{$\bar{f}$}(m-1-2);
\end{tikzpicture}
\end{wrapfigure}
\blindtext[1]
\begin{enumerate}
\item\begin{wrapfigure}{r}{4cm}
\centering
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,row sep=3em,column sep=4em,minimum width=0em]
{M &N\\
M/N&\\};
\path[-stealth,>=stealth]
(m-1-1)edge node[left]{$p$} (m-2-1)
edge node[above]{$f$}(m-1-2)
(m-2-1)edge[dashed,->]node[below]{$\bar{f}$}(m-1-2);
\end{tikzpicture}
\end{wrapfigure}
\blindtext[1]
\item\blindtext[1]
\end{enumerate}
\end{document}
I get this:

Now, with cutwin package and this code:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{matrix}
\usepackage{cutwin}
\usepackage{caption}
\usepackage{lipsum}
\begin{document}
\renewcommand\windowpagestuff{%
\hspace*{25pt}
\begin{tikzpicture}
\matrix (m) [matrix of math nodes,row sep=3em,column sep=4em,minimum width=0em]
{ M &N\\
M/N&\\};
\path[-stealth,>=stealth]
(m-1-1)edge node[left]{$p$} (m-2-1)
edge node[above]{$f$}(m-1-2)
(m-2-1)edge[dashed,->]node[below]{$\bar{f}$}(m-1-2);
\end{tikzpicture}
}
\opencutleft
\begin{cutout}{2}{10pt}{0.5\linewidth}{12}
\begin{enumerate}
{%
\parshape 15 26pt \linewidth 26pt \linewidth 0.5\linewidth 0.5\linewidth
0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth
0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth
0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth
0.5\linewidth 0.5\linewidth 0.5\linewidth 0.5\linewidth 26 pt \linewidth
\item \lipsum[1]
}%
\item \lipsum[2]
\item \lipsum[2]
\end{enumerate}
\end{cutout}
\end{document}
It doesn't work.

wrapfigdoes not work into list environments. You might try to replicate the desired effect with minipages (if this is only for one figure), but the result might not be optimal. – d-cmst Apr 12 '14 at 16:12wrapfig, but a possible work-around withcutwinis possible: please see http://tex.stackexchange.com/a/59106/3954. – Gonzalo Medina Apr 12 '14 at 16:30Package pgfbasematrix Error: Single ampersand used with wrong catcode.
And I have the same error with the picins package
– chickpea Apr 12 '14 at 16:40