
Possível duplicata:
Como envolver o texto em torno de uma figura?
Largura do texto errada após wrapfigure
Estou com o seguinte problema: usei wrapfigure para incluir uma imagem flutuante. Mas o problema é que a fórmula a seguir também é afetada pela largura do texto da figura envolvente, de modo que o gráfico não ultrapassa uma linha completa, mas apenas a metade da largura do texto, que é definida na figura envolvente!
Aqui está meu código
\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}
Então, como eu disse, a fórmula parece errada, ela está escrita apenas na metade do espaço, como a largura do texto definida em wrapfigure, quando adiciono um
\begin{wrapfigure}{l}{0cm}\end{wrapfigure}
antes da fórmula, então a fórmula está correta, mas o seguinte recuo de texto e itens está errado?
OK, a solução: adicione \par antes, obrigado!