New answers tagged

7

The macro \pgfmathprintnumber uses math mode for this. I suggest changing the definition of \prlen: \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\prlen}{m} { \fp_eval:n { round(\dim_to_fp:n { #1 }, 1) } } \ExplSyntaxOff If you want one decimal digit even if zero, you can do \usepackage{siunitx} \ExplSyntaxOn ...



Top 50 recent answers are included