2

How do I create a space for this statement:

enter image description here

I want to have some space between less than 0 and the for $x^{*} \neq$.

This the code that I'm using:

Lastly, the comparative static of $x^*$ w.r.t $\bar{P}$, $$\pdi{x^*}{\bar{P}}=-\frac{-1 - \frac{-a}{2(x^{*}-1)}}{\underbrace{\pdi{U^{c}}{x}-\pdi{U^{h}}{x}}_\text{(-) by stability condition}}\eqs{-1 - \frac{-a}{2(x^{*}-1)}} < 0 \text{for $x^{*}\neq 1$}.$$ 
OGC
  • 809

2 Answers2

5

Typically one would include the space as part of your \text, insert a manual control space \ , or use a \quad:

enter image description here

\documentclass{article}
\usepackage{mathtools}
\newcommand{\pdi}[2]{\partial #1 / \partial #2}
\newcommand{\eqs}{\overset{s}{=}}

\begin{document}
Lastly, the comparative static of $x^*$ w.r.t.\ $\bar{P}$,
\[
  \pdi{x^*}{\bar{P}} = -\frac{-1 - \frac{-a}{2(x^*-1)}}{\underbrace{\pdi{U^c}{x}-\pdi{U^h}{x}}_{\mathclap{\text{($-$) by stability condition}}}}
    \eqs{-1 - \frac{-a}{2(x^{*}-1)}} < 0 \text{ for $x^{*} \neq 1$}.
\]

Lastly, the comparative static of $x^*$ w.r.t.\ $\bar{P}$,
\[
  \pdi{x^*}{\bar{P}} = -\frac{-1 - \frac{-a}{2(x^*-1)}}{\underbrace{\pdi{U^c}{x}-\pdi{U^h}{x}}_{\mathclap{\text{($-$) by stability condition}}}}
    \eqs{-1 - \frac{-a}{2(x^{*}-1)}} < 0 \ \text{for $x^{*} \neq 1$}.
\]

Lastly, the comparative static of $x^*$ w.r.t.\ $\bar{P}$,
\[
  \pdi{x^*}{\bar{P}} = -\frac{-1 - \frac{-a}{2(x^*-1)}}{\underbrace{\pdi{U^c}{x}-\pdi{U^h}{x}}_{\mathclap{\text{($-$) by stability condition}}}}
    \eqs{-1 - \frac{-a}{2(x^{*}-1)}} < 0 \quad \text{for $x^{*} \neq 1$}.
\]

\end{document}

Above I loaded mathtools (which automatically loads amsmath). It allowed me to use \mathclap for the \underbrace text - avoiding possible overflow of the denominator in the fraction.

Note the use of \[...\] rather than $$...$$.

Werner
  • 603,163
  • I'd write $-$ for the term in the underbrace material, and I'd use \dfrac for the fractional expression in the numerator of the first big fraction. – Mico Jan 20 '15 at 22:45
  • @Mico: Thanks. I've added one suggestion... the last may be subjective in terms of its use. – Werner Jan 20 '15 at 22:54
  • Is there a reason for not using \;\text{for ...} instead of \ \text{for ...}? – Herr K. Jan 20 '15 at 23:18
  • 2
    @KevinC: \ is a regular inter-word space, the same you'll use when you type $...$ blah blah blah. So, I'd prefer that above \,, \; or \:. I might spring for \quad, but just as long as one is consistent in your usage. – Werner Jan 20 '15 at 23:35
0

Use \, to insert a thin space (looks better than \quad or \qquad)