Hello, Formatting numbers seems to be buggy: \starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid (0, 20, 1, 20cm, 10cm) ; fmt_pictures := false ; % use TeX as formatting engine draw hlintext.lft(0, 20, 1, 20cm, "@3e") ; \stopMPcode \stoptext See also page 381 of latest metafun-s.pdf. Peter -- Contact information: http://pmrb.free.fr/contact/
On 12-12-2010 12:49, Peter Münster wrote:
Hello,
Formatting numbers seems to be buggy:
\starttext \startMPcode drawoptions(withpen pencircle scaled .25pt withcolor .5white) ; draw hlingrid (0, 20, 1, 20cm, 10cm) ; fmt_pictures := false ; % use TeX as formatting engine draw hlintext.lft(0, 20, 1, 20cm, "@3e") ; \stopMPcode \stoptext
See also page 381 of latest metafun-s.pdf.
in mp-grid you can change: def do_initialize_numbers = if not numbers_initialized : init_numbers ( textext.raw("$-$") , textext.raw("$1$") , textext.raw("${\times}10$") , textext.raw("${}^-$") , textext.raw("${}^2$") ) ; if unknown _trial_run_ : numbers_initialized := true ; else : % no reset, otherwise textexts get out of sync % slows down graphics a bit but not much fi ; fi ; enddef ; ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Peter Münster