TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
\textrm{ in } or with amsmath \text{ in } or even \in? – Qrrbrbirlbel Dec 9 '12 at 19:07
Are you using plain TeX, or LaTeX? If using the latter, see Why is \[ … \] preferable to $$? and Are \( and \) preferable to $? – Werner Dec 9 '12 at 19:28
up vote 3 down vote accepted

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$$

share|improve this answer
Oddly enough, $$u = g \text{ in } \Omega$$ produces an undefined control sequence error... – Paul Dec 9 '12 at 19:24
Did you see the comment by Qrrbrbirlbel? Did you do \usepackage{amsmath} Try that and see if that fixes it. – Graphth Dec 9 '12 at 19:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.