1

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!

7
  • 5
    remove all the $ except one at the start and one at the end, this is a single math expression. Sep 13, 2021 at 11:42
  • 3
    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}$.
    – Bernard
    Sep 13, 2021 at 11:43
  • Thanks so much! That helped, much appreciated! :)
    – user251959
    Sep 13, 2021 at 11:44
  • Rewelcome :-)..I suggest to read this link also: tex.meta.stackexchange.com/questions/228/…
    – Sebastiano
    Sep 13, 2021 at 12:02
  • 1
    @Sebastiano Very helpful link, thank you!
    – user251959
    Sep 13, 2021 at 12:44

1 Answer 1

1

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).

1
  • 1
    Welcome to TeX.SE :)
    – MS-SPO
    Sep 13, 2021 at 19:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .