TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

let x ....

is really a text sentence rather than math so would normally be marked up as

Let $x$ be ....

with just the math bits in math, but perhaps your library only makes math expressions so you could do

 $\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.

share|improve this answer
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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.