23 Jul
2010
23 Jul
'10
11:29 p.m.
On Fri, Jul 23, 2010 at 23:23, Hans Hagen
On 23-7-2010 10:53, Vnpenguin wrote:
\startformula
K = \frac{\sigma_1}{\sigma_2} = \frac{355}{14}= \ctxlua{tex.print(string.format("%0.2f",355/14))} \stopformula
or
\ctxlua{context("\letterpercent0.2f",355/14)}
we can consider adding
\let\pct\letterpercent
but nice is:
\ctxluacode{context("%0.2f",355/14)}
i'll add this but keep in mind that this will only work in the text stream, not in macro definitions or as arguments
With the format "%..." it's better to call something like \clxluacode{contextf()} ? (like print() & printf())