WN wrote: > Hi all, > > I am trying to do the following in Metapost but my new math symbol is > not recognized. > Context knows about it but Tex does not. > > How can I make this work ? > > Kind regards > Wim Neimeijer > > % ================= Test code ======================== > \loadmapfile[original-youngryu-tx.map] > \definebodyfont [28pt,24pt,18pt, > 17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt] [mm] [ > mc=txexa sa 1] > > \setupbodyfont [11pt] > \definemathsymbol [varointctrclockwise] [op] [mc] ["2B] [mc] ["2C] > > \starttext > \startformula > \varointctrclockwise_{\gamma} f(z) \: dz = 0 > \stopformula > \startMPcode > picture p ; > path q; > numeric u; > > u := 1cm; > > p := btex $\varointctrclockwise_{\gamma} f(z) \: dz = 0$ etex; > p := p scaled 0.15cm; > draw p; > \stopMPcode > \stoptext > make sure that mp knows about the definitions:
- first extend the math collection (use decimen, since there is a linesplit bug with " here) - then load the times font - somehow display and inline math render differently; something for taco \startMPenvironment[global] \startmathcollection [default] \definemathsymbol [varointctrclockwise] [op] [mc] [43] [mc] [44] \stopmathcollection \usetypescript[times][ec] \setupbodyfont[times,11pt] \stopMPenvironment \starttext why the funny .15cm scale ... \startformula \varointctrclockwise_{\gamma} f(z) \: dz = 0 \stopformula $\varointctrclockwise_{\gamma} f(z) \: dz = 0$ \startMPcode draw btex $\varointctrclockwise_{\gamma} f(z) \: dz = 0$ etex scaled 0.15cm ; \stopMPcode \startMPcode draw btex $\displaystyle \varointctrclockwise_{\gamma} f(z) \: dz = 0$ etex scaled 0.15cm ; \stopMPcode \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context