
Возможный дубликат:
Как обвести рисунок текстом?
Неправильная ширина текста после wrapfigure
У меня следующая проблема: я использовал wrapfigure для включения плавающей картинки. Но проблема в том, что следующая формула также зависит от textwidth wrapfigure, поэтому графика не занимает всю строку, а только половину textwidth, которая установлена в 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}
Итак, как я уже сказал, формула выглядит неправильно, она просто написана на половине пространства, как textwidth, установленный в wrapfigure, когда я добавляю
\begin{wrapfigure}{l}{0cm}\end{wrapfigure}
перед формулой, то формула верна, но последующий отступ текста и элементов неверен?
Хорошо, решение: добавьте \par перед, спасибо!