# Mathematical Expression

I want to display the following in my thesis document: (1/7) ≤ X < (6/7)

I tried using the command: $\frac{1}{7}$ \leq $X <$\frac{6}{7}$ But I keep getting error messages, such as "missing$ inserted" appointing to the part $\frac{1}{7}$ \leq.

Though it does print out what I want, but it still seems to be wrong somehow. And there is some white space missing between ≤ and X.

Neither $[$\frac{1}{7}$] \leq$X

nor $($\frac{1}{7}$) \leq$X

nor ${$\frac{1}{7}$} \leq$X

nor \frac{1}{7}$\leq$X

were correct.

Can somebody please help? Thanks in advance!

• remove all the $ except one at the start and one at the end, this is a single math expression. Commented Sep 13, 2021 at 11:42 • Welcome to TeX SX! You don't have use a pair of$ $for each part of the formula. Just use $\frac{1}{7} \leq X < \frac{6}{7}$. Commented Sep 13, 2021 at 11:43 • Thanks so much! That helped, much appreciated! :) Commented Sep 13, 2021 at 11:44 • Rewelcome :-)..I suggest to read this link also: tex.meta.stackexchange.com/questions/228/… Commented Sep 13, 2021 at 12:02 • @Sebastiano Very helpful link, thank you! Commented Sep 13, 2021 at 12:44 ## 1 Answer Your problem is that the \leq should be inside the math formula, not outside. Try this: $\frac{1}{7} \leq X < \frac{6}{7}\$


(this worked fine when making this solution).

• Welcome to TeX.SE :) Commented Sep 13, 2021 at 19:52