I am writing my first book. I need to wrap figures. I want text to flow it. I am searching in the internet the best way to do it. I need it in theorems with formulas. And way from the topic below is the best, but here is problem. It doesn't work with formulas properly! Look at the screenhot. Awful! I can't correct it manually.
PS. I do not need exactly this way of adding pictures. If you know correct way which works with theorems, formulas, tell me please.
How to wrap around a figure in a theorem-like environment?
this:
and this:
this is normal, but without formulas:
\documentclass{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage[]{graphicx}
\usepackage{amsmath,amsthm,amssymb,amscd}
\usepackage{caption}
\usepackage{picins}
\usepackage{microtype}
\usepackage{cutwin}
\newbox\mybox
\newdimen\myboxwidth
\newcommand\addpicture[3]{%
\setbox\mybox=\hbox{\includegraphics[scale=#3]{#2}}
\myboxwidth\wd\mybox
\renewcommand\windowpagestuff{%
\includegraphics[scale=#3]{#2}
\captionof{figure}{}}
\parpic[#1]{%
\begin{minipage}{\myboxwidth}
\windowpagestuff
\end{minipage}
} }
\theoremstyle{plain}
\newtheorem{thm}{Теорема}
\renewcommand{\thethm}{\arabic{thm}}
\begin{document}
\begin{thm}[о существовании и единственности неявной функции, заданной одним уравнением]\label{yaa14th1}
Пусть функция $F(x,y)$ определена и непрерывна в некоторой $\delta$-окрестности точки $(x_0,y_0)$, и пусть $F(x_0,y_0)=0$. Тогда, если $F(x,y)$ при каждом фиксированном $x$ строго монотонна по $y$, то у точек $x_0$ и $y_0$ существуют окрестности $\Delta$ и $(a;b)$ такие, что на множестве $\Delta\times(a;b)$ уравнение $F(x,y)=0$ определяет единственную неявную функцию $y=f(x),\; x\in\Delta$, и эта функция $f$ непрерывна на $\Delta$.
\end{thm}
\begin{proof}
По условию функция $F(x_0,y)$ строго монотонна и равна нулю при $y_0$.\addpicture{r}{ch9pict1.png}{0.47} Пусть для определенности, она строго возрастает. Тогда $F(x_0,y)>0$ для всех допустимых $y>0$ и $F(x_0,y)<0$ для всех допустимых $y<y_0$.
Выберем некоторые $a$ и $b$ такие, что $a<y_0<b$ и точки $(x_0,a)$, $(x_0,b)$ лежать в $\delta$-окрестности точки $(x_0,y_0)$. Тогда
$$
F(x_0,a)<0<F(x_0,b).
$$
Функции $F(x,a)$ и $F(x,b)$ непрерывны в точке $x_0$, поэтому существуют окрестности $\Delta'$ и $\Delta''$ точки $x_0$ такие, что (рис.)
$$
F(x,a)<0 \quad \forall x\in \Delta', \qquad F(x,b)>0\quad \forall x\in \Delta''.
$$
Отсюда следует, что $F(x,a)<0<F(x,b)$ для любого $x$ из интервала $\Delta = \Delta'\cap\Delta''$. А так как функция $F(x,y)$ при каждом фиксированном $x\in\Delta$ по $y$ непрерывна и строго монотонна, то для каждого $x\in \Delta$ существует единственное $y$, которое обозначим $f(x)$, такое что $f(x)\in(a;b)$ и $F(x,f(x))=0$. Следовательно, на прямоугольнике $\Delta\times(a;b)$ уравнение $F(x,y)=0$ определяет единственную неявную функцию $y=f(x)$. Докажем, что она непрерывна в точке $x_0$
Выберем некоторую окрестность $(\alpha;\beta)$ точки $y_0$. Не ограничивая общности, будем считать, что $(\alpha;\beta)\subset (a;b)$. Тогда точно также, как и для интервала $(a,b)$, строится окрестность $\Delta=\Delta(\alpha;\beta)$ точки $x_0$ такая, что $\forall x\in\Delta \quad f(x)\in(\alpha;\beta)$. А это и означает, что функция $f$ непрерывна в точке $x_0$.
Непрерывность функции $y=f(x)$ в любой точке $x_1\in\Delta$ следует из того, что в точке с координатами $x_1$ и $y_1=f(x_1)$ выполнены все условия теоремы, поэтому, согласно доказанному, у точки $(x_1,y_1)$ существует прямоугольная окрестность, в которой уравнение $F(x,y)=0$ определяет единственную функцию $y=f(x_1),\;x\in\Delta_1$, которая непрерывна в точке $x_1$. Очевидно, что $f_1(x)=f(x)\quad \forall x\in\Delta\cap\Delta_1$, и поэтому функция $f(x)$ непрерывна в точке $x_1\in\Delta$.
Теорема доказана.
\end{proof}
\end{document}




\addpictures on a line by themselves instead of in the middle of the text. – MickG Mar 06 '16 at 12:58picinsis not well-documented, and I have no idea what the other parameters to\parpicare for.\parpic(<dimen>,<dimen>)(<dimen>,<dimen>)[…][……]{………}is the full syntax. It appears the thirddimenmoves the picture sideways and the fourth one moves it vertically, but the first two I have no idea what they are for, and the……is a mystery. – MickG Mar 06 '16 at 13:18center, never mixed them with text. But you can try usingwrapfigoratbegshi(just naming packages I have seen named in wrapping picture questions). – MickG Mar 06 '16 at 13:28(width,height)of what? – MickG Mar 06 '16 at 13:29I guess, of area for picture...
– Mar 06 '16 at 13:31atbegshiis a wrong memory I had. Nothing to do with pictures :). – MickG Mar 06 '16 at 13:34wrapfigdoes not work in theorems... – Mar 06 '16 at 13:35floatfltbut the result was even stranger. – MickG Mar 06 '16 at 13:45