# How to put white spaces in JLaTeXMath

We are using JLatexMath library in java project to export some expression into JLatexMath. Code:

texCode="\\mathrm {let} {x}"

It shows Letx. What I need is Let x, space between Let and x. Does anybody knows how to put spaces between them. Thanks forward.

-

Let $x$ be ....
$\mbox{Let } x ...$
with \mbox giving a nested text context in which a space produces a word space. Apparently the $are implicitly added by your API so you wouldn't need them. - By default JLaTeXmath is in math mode. So the previous solution is the a good one. You can also use \text{let$x\$}. Regards, Calixte –  user16844 Jul 22 '12 at 14:37