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
___________________________________________________________________________________ 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 ___________________________________________________________________________________