Re: [NTG-context] math problems in last beta (cont-en and cont-xp)
Hi all, 2009/3/23 Hans Hagen pra...@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 ___ ___ 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 ___
Re: [NTG-context] math problems in last beta (cont-en and cont-xp)
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 ___
Re: [NTG-context] math problems in last beta (cont-en and cont-xp)
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 ___
Re: [NTG-context] math problems
Aditya Mahajan wrote: On Sun, 15 Mar 2009, Mohamed Bana wrote: hi guys, i generally use this file to test if math is working, with the recent update i get a lot of errors such as; Add \let\blackboard\mathblackboard \let\fraktur\mathfraktur \let\gothic\mathfraktur ok, i added it to math-ini.mkiv - 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 ___
Re: [NTG-context] math problems
fairly recently as in, say, 2 months ago, i could typeset that file without changing anything, that is, it worked with luatex and pdftex from the minimals and pdtex from texlive 2008. is this because of the recent addition of the math stuff? Mohamed Aditya Mahajan wrote: On Sun, 15 Mar 2009, Mohamed Bana wrote: hi guys, i generally use this file to test if math is working, with the recent update i get a lot of errors such as; Add \let\blackboard\mathblackboard \let\fraktur\mathfraktur \let\gothic\mathfraktur in your preamble. 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 ___ ___ 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 ___
Re: [NTG-context] math problems
On Sun, 15 Mar 2009, Mohamed Bana wrote: hi guys, i generally use this file to test if math is working, with the recent update i get a lot of errors such as; Add \let\blackboard\mathblackboard \let\fraktur\mathfraktur \let\gothic\mathfraktur in your preamble. 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 ___