11 Nov
2008
11 Nov
'08
3:45 p.m.
On Tue, Nov 11, 2008 at 3:36 PM, Aditya Mahajan
On Tue, 11 Nov 2008, Wolfgang Schuster wrote:
And how could one change the font/style for the number?
Do you mean with textext, or with the macro that Hans is proposing to define?
I mean in the example from Hans with textext(decimal value).
textext(string) will typeset the string using context, so you can add "\switchtobodyfont[whatever]" in there.
The new label macro can use labelfont (or defaultfont, I always forget what metapost uses) to switch the font. In that case there should also be a label color, unless draw textext("something") withcolor red ; works (sorry, I haven't tested this)
I prefer \doattributes with a setup command and use this in my modules. Wolfgang