0

I am writing the following:

$$p(Z_{n+m}=i for some m> 0|Z_{n}=i)=1$$ 

Compiling, the spaces between the words "i for some m" are removed giving as a result "iforsomem"

How can I prevent this?

Note that I cannot write something like

$p(Z_{n+m}=i$ for some $m> 0|Z_{n}=i)=1$ 

because I want it centered horizontally

Thank you for your help!

3
  • Use \usepackage{amsmath} and then you can have \text{ for some } or simply use (without amsmath) \mbox{ for some } Commented Dec 11, 2018 at 18:22
  • 1
    See also tex.stackexchange.com/questions/503/why-is-preferable-to Commented Dec 11, 2018 at 18:22
  • Both ways did work. Thank you @Au101 Commented Dec 12, 2018 at 15:57

1 Answer 1

2

You need to do

\usepackage{amsmath} 

in your document and then you can type

\begin{equation*} \text{$p(Z_{n+m}=i$ for some $m>0 \mid Z_{n}=i)=1$} \end{equation*} 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.