* math problems in last beta (cont-en and cont-xp) @ 2009-03-23 9:51 Lutz Haseloff 2009-03-23 14:41 ` Aditya Mahajan 2009-03-23 21:22 ` Hans Hagen 0 siblings, 2 replies; 4+ messages in thread From: Lutz Haseloff @ 2009-03-23 9:51 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1136 bytes --] Hi Hans, hi Taco, hi all, testing math with the latest ConTeXt beta i found some problems. My test file is: \usetypescriptfile[type-buy] \def\currentfontname {\ctxlua{tex.print(font.getfont(font.current()).fullname)}} \starttext \startbuffer[mathbuffer] \currentfontname $a^2 + b^2 = c^2$ $E = mc^2 \bigotimes \sum$ $α^2 + β^2 = γ^2$ \blank[big] \stopbuffer \getbuffer[mathbuffer] \usetypescript[lucida][texnansi] \setupbodyfont[lucida] \getbuffer[mathbuffer] \usetypescript[cambria] \switchtotypeface[cambria] \getbuffer[mathbuffer] \usetypescript[palatino] \switchtotypeface[palatino] \getbuffer[mathbuffer] \stoptext Latin Modern and Palatino/px work very fine. Lucida lacks greek and some operators. I found no embedded LucidaNewMath fonts in the resulting pdf. Cambria has a very ugly spacing. btw. in the wiki is described a ConTeXt command \showmathcharacters. This seems not to work anymore. The related file math-run.tex is not input at the time of format generation. Greetings Lutz P.S. will the key [texnansi] (or [ec]) remain necessary to switch to LucidaBright? [-- Attachment #1.2: Type: text/html, Size: 1231 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: math problems in last beta (cont-en and cont-xp) 2009-03-23 9:51 math problems in last beta (cont-en and cont-xp) Lutz Haseloff @ 2009-03-23 14:41 ` Aditya Mahajan 2009-03-23 21:22 ` Hans Hagen 1 sibling, 0 replies; 4+ messages in thread From: Aditya Mahajan @ 2009-03-23 14:41 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: TEXT/PLAIN, Size: 1836 bytes --] On Mon, 23 Mar 2009, Lutz Haseloff wrote: > Hi Hans, hi Taco, hi all, > > testing math with the latest ConTeXt beta i found some problems. > My test file is: > > \usetypescriptfile[type-buy] > \def\currentfontname > {\ctxlua{tex.print(font.getfont(font.current()).fullname)}} > \starttext > \startbuffer[mathbuffer] > \currentfontname > > $a^2 + b^2 = c^2$ > > $E = mc^2 \bigotimes \sum$ > > $α^2 + β^2 = γ^2$ > \blank[big] > \stopbuffer > \getbuffer[mathbuffer] > \usetypescript[lucida][texnansi] > \setupbodyfont[lucida] > \getbuffer[mathbuffer] > \usetypescript[cambria] > \switchtotypeface[cambria] > \getbuffer[mathbuffer] > \usetypescript[palatino] > \switchtotypeface[palatino] > \getbuffer[mathbuffer] > \stoptext For using old type-1 math fonts, you need to create virtual fonts. > Latin Modern and Palatino/px work very fine. For LM, Palatino, and Times, the virtual fonts are created in math-vfu.lua > Lucida lacks greek and some operators. I found no embedded LucidaNewMath > fonts > in the resulting pdf. There are no virtual fonts for Lucida math. In principle, one just needs to translate math-lbr to lua syntax. I will try to do that, but I need someone to test the results, since I do not have Lucida fonts myself. > Cambria has a very ugly spacing. Luatex does not do kerning for utf math right now. This will be handled correcrly in the future. > btw. in the wiki is described a ConTeXt command \showmathcharacters. > This seems not to work anymore. The related file math-run.tex is not > input at the time of format generation. \ShowCompleteFont{name:Cambria-Math}{10pt}{1} > P.S. will the key [texnansi] (or [ec]) remain necessary to switch to > LucidaBright? For text fonts, yes. Normally math fonts use an independent encoding. Aditya [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: math problems in last beta (cont-en and cont-xp) 2009-03-23 9:51 math problems in last beta (cont-en and cont-xp) Lutz Haseloff 2009-03-23 14:41 ` Aditya Mahajan @ 2009-03-23 21:22 ` Hans Hagen 2009-03-24 9:38 ` Lutz Haseloff 1 sibling, 1 reply; 4+ messages in thread From: Hans Hagen @ 2009-03-23 21:22 UTC (permalink / raw) To: mailing list for ConTeXt users Lutz Haseloff wrote: > Lucida lacks greek and some operators. I found no embedded LucidaNewMath > fonts > in the resulting pdf. not defined at all (yet) (see end of math-vfu for how to do that; you can give lucida a try) > Cambria has a very ugly spacing. hm, do you have the latest cambria? there might be problems with some otf math parameters but we need examples before we can act on that > btw. in the wiki is described a ConTeXt command \showmathcharacters. > This seems not to work anymore. The related file math-run.tex is not > input at the time of format generation. in mkiv we wil use modules for that ... s-fnt-25 is for math > P.S. will the key [texnansi] (or [ec]) remain necessary to switch to > LucidaBright? no ----------------------------------------------------------------- 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: math problems in last beta (cont-en and cont-xp) 2009-03-23 21:22 ` Hans Hagen @ 2009-03-24 9:38 ` Lutz Haseloff 0 siblings, 0 replies; 4+ messages in thread From: Lutz Haseloff @ 2009-03-24 9:38 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2944 bytes --] Hi all, 2009/3/23 Hans Hagen <pragma@wxs.nl> > Lutz Haseloff wrote: > > Lucida lacks greek and some operators. I found no embedded LucidaNewMath >> fonts >> in the resulting pdf. >> > > not defined at all (yet) (see end of math-vfu for how to do that; you can > give lucida a try) > I tried that, but it seems not enough to define: mathematics.make_font ( "lucida-math", { { name = "lucidabright", features = "virtualmath", main = true }, { name = "lucidanewmathroman", vector = "traditional-mr" } , { name = "lucidanewmathitalic", vector = "traditional-mi", skewchar=0x7F }, { name = "lucidanewmathsymbol", vector = "traditional-sy", skewchar=0x30, parameters = true } , { name = "lucidanewmathextension", vector = "traditional-ex", extension = true } , { name = "msam10", vector = "traditional-ma" }, { name = "msbm10", vector = "traditional-mb" }, } ) (I don't know in which of the lucida fontfiles the symbols a and b are located.) I would be glad to test math for the good old LucidaBright fonts. I'm not smart enough to prepare this myself. > > > Cambria has a very ugly spacing. >> > > hm, do you have the latest cambria? there might be problems with some otf > math parameters but we need examples before we can act on that > I had an old version of cambria cached in C:\contextminimal\texmf-cache\luatex-cache\context\...\fonts After deleting them spacing is ok. But the \bigotimes operator from my example file now disappeared. > > > btw. in the wiki is described a ConTeXt command \showmathcharacters. >> This seems not to work anymore. The related file math-run.tex is not >> input at the time of format generation. >> > > in mkiv we wil use modules for that ... s-fnt-25 is for math > Should I send the output of: \usetypescript[cambria] \setupbodyfont[cambria] \usemodule[fnt-25] \starttext \showmathfontcharacters \stoptext to somebody? (130 pages, 458 kB) > > > P.S. will the key [texnansi] (or [ec]) remain necessary to switch to >> LucidaBright? >> > > no > > > ----------------------------------------------------------------- > 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 > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 5326 bytes --] [-- Attachment #2: Type: text/plain, Size: 487 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-24 9:38 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-03-23 9:51 math problems in last beta (cont-en and cont-xp) Lutz Haseloff 2009-03-23 14:41 ` Aditya Mahajan 2009-03-23 21:22 ` Hans Hagen 2009-03-24 9:38 ` Lutz Haseloff
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).