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!
$
except one at the start and one at the end, this is a single math expression.$\frac{1}{7} \leq X < \frac{6}{7}$
.