# Written on same line equation and string

I have written "hello world x (become) E"

my code is:

hello world $\in {E}$


but the result is: two line

• $ and $ enter display-math mode; use $\in E$ (or $$\in E$$ if you prefer). – Sean Allred Sep 16 '17 at 17:35
• @SeanAllred good comment please written you answer for i put +1 – x-rw Sep 16 '17 at 17:39
• I suggest having a look at dickimaw-books.com/latex/novices – egreg Sep 16 '17 at 17:42

$ and $ is shorthand to enter display-math mode; use $\in E$ (or $$\in E$$ if you prefer).