I have a macro named
\Total
which holds a number that is the result of some math operations with package fp-upn
from fp. I want to show the output of \numprint{\Total}
from numprint in a \ClassWarning
or \ClassInfo
to be shown in the log. (I'm making a class).If I put
\ClassInfo{factura}{\numprint{\Total}}
inside the class, the log file reads:Code: Select all
Class factura Info: ** Total -> Bs.\numprint 1462.50000000000000000
\Total
but this isn't in the format after applying \numprint
because \numprint
doesn't work inside \ClassInfo
.What trick can be used to show inside
\ClassInfo
the result of \numprint{\Total}
?I did try:
Code: Select all
\let\TOTAL\numprint\Total
\ClassInfo{factura}{\numprint{\TOTAL}}
\expandafter
and \protect
.There is a way to hold inside another macro the result of evaluating
\numprint{\Total}
? This way the macro holds the number and not the operation with \numprint
that cannot be evaluated inside \ClassInfo
.Thanks in advance!