siunitx: Default mode for printing

A while ago, someone e-mailed me about siunitx and the current choice of fonts for printing. At the moment, the package uses the current maths font for both numbers and units. It was suggested that a better standard setting would be maths font for numbers, text font for units. I’m not going to alter this for version 1, but as I work on version 2 this is something worth considering. In most documents, the difference should not show up. However, I wonder what people think: I can see the logic to the request, but don’t fancy getting lots of complaints either. Comments welcome!

8 thoughts on “siunitx: Default mode for printing

  1. You mean the difference between textrm and mathrm, the current behaviour being the latter and the proposed behaviour being the former? I think I agree this would be an improvement, not that I’ve noticed it until now ๐Ÿ™‚

  2. Some things have come up in testing. Once I get to the point where a snapshot makes sense, I’ll include some discussion of the question.

  3. Sorry to ask here, do you think the error in this example is a bug?

    documentclass{memoir}
    usepackage{siunitx}
    setsecheadstyle{normalfontraggedrightMakeUppercase}
    begin{document}
    section{num{2×2}}
    num{2×2}
    end{document}

  4. Hello Leo,

    Well, num doesn’t do anything to the input until it typesets the argument, so I’m not exactly surprised. You see the same thing if you try:

    MakeUppercase{num{2×2}}

    without the section heading business. So I’d this reflects how TeX works, really: you make things upper case before doing the other processing, not after.

    Joseph

  5. I should add that

    documentclass{memoir}
    usepackage{siunitx}
    setsecheadstyle{normalfontraggedrightMakeUppercase}
    sisetup{numprod=xX}
    begin{document}
    section{num{2×2}}
    end{document}

    works fine.

Leave a Reply