On Thu, Mar 18, 2010 at 10:40 AM, Wolfgang Schuster <[email protected]> wrote: > Am 18.03.10 08:12, schrieb Mehdi Omidali: >> >> Hi, >> I have tested all samples in the arxive to use mathdesign fonts for math >> but no success has been reached. > > Files: http://drp.ly/CC5aF > > Unzip the archive in one of your local TeX folders. > > Sample: http://drp.ly/CC86L > Result: http://drp.ly/CC92k > > Replace the font defintions in math-vfu.lua with this and regenerate the > format. > > mathematics.make_font ( "charter-math", { > -- { name = "file:bchr8a", features = "virtualmath", main = true }, > { name = "file:bchri8a", features = "virtualmath", main = true }, > -- { name = "md-chr7m.tfm", vector = "tex-mr" }, > { name = "md-chri7m.tfm", vector = "tex-mi", skewchar=0x7F }, > { name = "md-chri7m.tfm", vector = "tex-it", skewchar=0x7F }, > { name = "md-chr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = > true }, > { name = "md-chr7v.tfm", vector = "tex-ex", extension = true }, > -- { name = "md-chbma.tfm", vector = "tex-ma" }, > -- { name = "md-chbmb.tfm", vector = "tex-mb" }, > { name = "msam10.tfm", vector = "tex-ma" }, > { name = "msbm10.tfm", vector = "tex-mb" }, > } ) > > mathematics.make_font ( "garamond-math", { > -- { name = "file:ugmr8a", features = "virtualmath", main = true }, > { name = "file:ugmri8a", features = "virtualmath", main = true }, > -- { name = "md-gmr7m.tfm", vector = "tex-mr" }, > { name = "md-gmri7m.tfm", vector = "tex-mi", skewchar=0x7F }, > { name = "md-gmri7m.tfm", vector = "tex-it", skewchar=0x7F }, > { name = "md-gmr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = > true }, > { name = "md-gmr7v.tfm", vector = "tex-ex", extension = true }, > -- { name = "md-gmmma.tfm", vector = "tex-ma" }, > -- { name = "md-gmmmb.tfm", vector = "tex-mb" }, > { name = "msam10.tfm", vector = "tex-ma" }, > { name = "msbm10.tfm", vector = "tex-mb" }, > } ) > > mathematics.make_font ( "utopia-math", { > -- { name = "file:putr8a", features = "virtualmath", main = true }, > { name = "file:putri8a", features = "virtualmath", main = true }, > -- { name = "md-utr7m.tfm", vector = "tex-mr" }, > { name = "md-utri7m.tfm", vector = "tex-mi", skewchar=0x7F }, > { name = "md-utri7m.tfm", vector = "tex-it", skewchar=0x7F }, > { name = "md-utr7y.tfm", vector = "tex-sy", skewchar=0x30, parameters = > true }, > { name = "md-utr7v.tfm", vector = "tex-ex", extension = true }, > -- { name = "md-utbma.tfm", vector = "tex-ma" }, > -- { name = "md-utbmb.tfm", vector = "tex-mb" }, > { name = "msam10.tfm", vector = "tex-ma" }, > { name = "msbm10.tfm", vector = "tex-mb" }, > } ) > > Wolfgang
Wow, Wolfgang, this is very nice! (I was fighting his some weeks ago, and what I probably did wrong was that I did not regenerate the file name database. Now the math is indeed italic and not upright.) It is, however, not completely perfect. With the following example, I get the attached result. I think the prime is too close to the f and also, sin should be "upright" and not italic. Any ideas? % mdprim.tex \definetypeface[charter][mm][math] [charter] [default] \definetypeface[charter][rm][serif][charter] [default] \setupbodyfont[charter,10pt] \starttext $f'(x)=\sin(x)$. \stoptext % end of mdprim.tex Best regards, Mikael PS I hope it is OK to attach a 10kB pdf file
mdprim.pdf
Description: Adobe PDF document
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
