Text within an expression

One can use the \mbox command to insert normal text into an expression. This command forces LATEX temporarily out of maths mode, so that its argument will be treated as normal text. It's use is simple, but we must be wary on one count: remember that LATEX ignores all space characters when in maths mode; so to surround words in an expression that were placed by an \mbox command by space you must include the space in the \mbox argument.

\begin{mathegs}
\verb@$f_i(x) \leq 0 \mbox{ for } x \in I$@ & $f_i(x) \leq 0 \mb...
...an integer}$@ & $\Gamma(n)=(n-1)! \mbox{ when $n$\ is an integer}$
\end{mathegs}

In section [*] we'll learn of some special spacing commands that can be used in math mode. These are often very useful in positioning text within an expression, enhancing readability and logical layout.