I want to my statement to say u = g in Omega. I tried coding $$u=g in \Omega$$, but this results in no spaces around the word 'in'. How can I insert them?
Asked
Active
Viewed 7,231 times
1 Answers
3
One way is $$u = g \text{ in } \Omega$$
Or, if you don't need the display with two dollar signs, $u = g$ in $\Omega$
Or, if you want a bigger space, $$u = g \quad \text{in} \quad \Omega$$
Or, for an even bigger space, $$u = g \qquad \text{in} \qquad \Omega$$
GeoffDS
- 272
-
Oddly enough, $$u = g \text{ in } \Omega$$ produces an undefined control sequence error... – Paul Dec 09 '12 at 19:24
-
Did you see the comment by Qrrbrbirlbel? Did you do \usepackage{amsmath} Try that and see if that fixes it. – GeoffDS Dec 09 '12 at 19:46
\textrm{ in }or withamsmath\text{ in }or even\in? – Qrrbrbirlbel Dec 09 '12 at 19:07\[ … \]preferable to$$? and Are\(and\)preferable to$? – Werner Dec 09 '12 at 19:28