Some of the figures I make with
pgfmath to calculate the tick positions for the extrema of a function, with code similar to the one given here.
However, these numbers seem to always be typeset in math mode (I can tell because I'm using oldstyle numerals). I've come across a similar problem when I would normally use
\pgfmathprintnumber, but find that this is also (understandably) typeset as math by default.
Is there a way to use the
pgfmath number parsing code, but then typeset that number in text mode?
I can provide a MWE, but I don't know how useful it would be in this case.