An inline LATEX equation should be put inside single $.

$x = 2$ %(will output)