3

I want to show a range from 0 to infinity. I'm using this line of LaTeX with siunitx imported:

\numrange[range-phrase = --]{0}{\infty}

That line gives this error:

siunitx error: "invalid-token-in-number"

I've also tried with $'s around the \infty. What is the correct way to render this range?

3
  • 1
    Try placing parse-numbers=false in the options for \numrange
    – Troy
    Commented Apr 30, 2017 at 3:18
  • Nailed it! Should I delete the question, or should you submit that as an answer? Commented Apr 30, 2017 at 3:21
  • Haha, you can go ahead and answer your own question, that's fine with me.
    – Troy
    Commented Apr 30, 2017 at 3:25

1 Answer 1

6

As Troy notes, \numrange has a Boolean flag that controls this behavior: parse-numbers.

\numrange[range-phrase = --, parse-numbers=false]{0}{\infty}

You must log in to answer this question.

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