0

I want to center a set with contains words as follows

{

x in A : x is suppose to be centered}.

I tried the following:  
$$\{x\in A : x is suppose to be centered}$$

which outputs {x in A : xissupposetobecentered}. All of the letters are smashed together, which is something I don't want. How can I fix this?

  • Please give us some clues, are you using plain Tex or context or latex? – David Carlisle May 23 '14 at 21:56
  • \usepackage{amsmath} \[ \{x \in A : x \text{ is supposed to be centered} \} \] – Gonzalo Medina May 23 '14 at 21:56
  • 1
    You are not supposed to write words inside dollars. A sequence of chars is seen by tex as a product of single-char-named variables, and spaces are ignored. So $Hello$ is indeed the product of $H$, $o$, $l$, $l$, and $o$. This explains the awkward spacing. To write words inside a math environment use \text{} (from amstext package). – JLDiaz May 23 '14 at 22:31
  • @JLDiaz perhaps better to directly recommend loading amsmath which internally loads amstext and offers other useful features? – Gonzalo Medina May 23 '14 at 22:44
  • @GonzaloMedina Right. Unfortunately comments cannot be edited. – JLDiaz May 23 '14 at 23:00
  • @JLDiaz Unfortunately, I have been using Latex only for the past 3 days or so. I am quite unfamiliar with most of its functions. – Eames Cobb May 23 '14 at 23:19

1 Answers1

1

You could use the \text command like this:

\[ \{x\in A : x \text{ is suppose to be centered} \} \]
zeroset
  • 53