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?

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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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