wrapfigure の後のインデントが間違っている

wrapfigure の後のインデントが間違っている

重複の可能性あり:
図の周りにテキストを折り返すにはどうすればいいですか?
wrapfigure 後のテキスト幅が間違っている

次の問題があります。wrapfigure を使用してフローティング画像を組み込みました。しかし、次の数式も wrapfigure のテキスト幅の影響を受けるため、グラフィックが 1 行全体ではなく、wrapfigure で設定されたテキスト幅の半分だけになってしまうという問題があります。

これが私のコードです

\documentclass{book}
\usepackage{wrapfigure}
\usepackage{shadethm}
\usepackage{mdframed}

\newtheoremstyle{mystyle}
  {\topsep}{\topsep}{}{}%
  {\bfseries}{:}{.5em}{}%

\theoremstyle{mystyle}

\newmdtheoremenv[hidealllines=true,backgroundcolor=red,skipabove=\topsep,
skipbelow=\topsep]{example}{Example}

\newmdtheoremenv[hidealllines=true,
backgroundcolor=blue,skipabove=\topsep,
skipbelow=\topsep]{formula}{Formula}


\begin{document}

\subsection{Subsection with wrapfigure}
text text text text wich goes around the picture text text text text text text text 
\begin{wrapfigure}{l}{0.5\textwidth}
  \begin{center}
    \includegraphics[scale=1]{picure.png}%width=0.48\textwidth
  \end{center}
  \caption{Caption}
\label{fig:zins}
\end{wrapfigure}

\noindent text text text

\begin{formel}[formula name] \label{geom}
$\\ \x + y +h+f+d+s+c+x+c+s+e+w+q+d+s+d+e=2323232323 +231231231 = 44$\\
or\\
$\bar{x}_{Geom}=\sqrt[n]{\frac{end}{begin}}$
\end{formel}
text text text text text text text text text text
\end{document}

先ほど言ったように、この式は間違っているように見えます。wrapfigureで設定したテキスト幅のように、スペースの半分を超えて書かれています。

\begin{wrapfigure}{l}{0cm}\end{wrapfigure}

数式の前にある場合、数式は正しいですが、その後のテキストと項目のインデントが間違っていますか?

OK、解決策は、前に \par を追加することです。ありがとうございます!

関連情報