I'm facing a problem in long inline equation .
here is a simple example ;
Code: Select all
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
Let $T$ be a caterpillar with diameter $d$. Then $V(T)= \left\{ x_r: r = 1, 2,\ldots , d –1,\ {and}\ deg(x_r)> 1\right\} \cup \left\{ x_{ri} : i = 1, 2, \ldots, t_r, r = 1, 2,\ldots, d –1, \ {and}\ deg(x_{ri}) =1 \right\}$. The number of vertices of $T$ is $n = d –1 + \sum\limits_{r=1}^{d-1}t_r$. Observe that, $x_{ri}$ is adjacent to $x_r$, and $x_r$ is adjacent to $x_{r+1}$, for $r = 1, 2,\ldots, d-2$. Note that, the caterpillar graph is represented in Figure 1.
\end{document}
Also, I tried to put in $$ ...$$ tags, the same problem , it extended to the margin...
Best regards