I want to list the versions of some python modules I am using. The problem is that the format of the version has two dots, for example 10.10.10 or 1.04.5. When I try \num{10.10.10} I get the error: duplicate-decimal-token.

Is there a way to use the \num command from siunitx to typeset these numbers? Any alternative?

  • Well, numbers are supposed to have only one dot (two parts) – user156344 Apr 24 '19 at 15:08
  • Yes sure. But these particular numbers have two. Any idea? – kbr85 Apr 24 '19 at 15:12
  • 4
    What exactly do you expect \num to do with a version number? – John Kormylo Apr 24 '19 at 15:14
  • 1
    But does \num{10.10} look any different from 10.10? – John Kormylo Apr 24 '19 at 15:22
  • 1
    If Alan Munn solves your problem, why don't use just 10.10.10? It is totally not different at all! – user156344 Apr 24 '19 at 15:30

You can set the parse-numbers key to false for these numbers.

  • That did it. I also voted up the answer but not enough privileges so far to change the displayed count. Thanks!! – kbr85 Apr 24 '19 at 15:29

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.