Re: [NTG-context] wrong sign or spacing in math/mkiv (at least in Lucida)
On Thu, Sep 30, 2010 at 22:25, Hans Hagen wrote: > On 30-9-2010 10:01, Mojca Miklavec wrote: >> >> Dear Hans, >> >> I'm not sure if the same problem would occur with other fonts as well >> (it is probably worth trying), but at least it happens with Lucida. >> >> Something is wrong with the spacing around the plus sign or maybe the >> wrong plus sign is taken (I suspect that). > > indeed, in the lfg file, add: > > mathencodings["lbr-sy"] = { > > [0x0002B] = 0x82, -- plus > [0x0003D] = 0x83, -- equal Thanks a lot, that helps. > ( ) / might also need an entry I see an mathencodings["large-to-small"] = { [0x00028] = 0x00, -- ( [0x00029] = 0x01, -- ) in math-vfu.lua, but I don't yet understand exactly what is needed. Mojca ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] wrong sign or spacing in math/mkiv (at least in Lucida)
On 30-9-2010 10:01, Mojca Miklavec wrote: Dear Hans, I'm not sure if the same problem would occur with other fonts as well (it is probably worth trying), but at least it happens with Lucida. Something is wrong with the spacing around the plus sign or maybe the wrong plus sign is taken (I suspect that). indeed, in the lfg file, add: mathencodings["lbr-sy"] = { [0x0002B] = 0x82, -- plus [0x0003D] = 0x83, -- equal ( ) / might also need an entry Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] wrong sign or spacing in math/mkiv (at least in Lucida)
Dear Hans, I'm not sure if the same problem would occur with other fonts as well (it is probably worth trying), but at least it happens with Lucida. Something is wrong with the spacing around the plus sign or maybe the wrong plus sign is taken (I suspect that). In MKII the formula is nicely aligned, while it looks ugly in MKIV. Here's the source: \beginOLDTEX \usetypescript[lucida][ec] \endOLDTEX \setupbodyfont[lucida] \starttext \startformula\startalign[align={left,left}] \NC m_{A_1'} \NC = (3+0+3+3+0+3) = 1 \NR \NC m_{A_2'} \NC = (3+0-3+3+0-3) = 0 \NR \NC m_{E'}\NC = (6+0+0+6+0+0) = 1 \NR \NC m_{A_1''} \NC = (3+0+3-3+0-3) = 0 \NR \NC m_{A_2''} \NC = (3+0-3-3+0+3) = 0 \NR \NC m_{E''} \NC = (6+0+0-6+0+0) = 0 \NR \stopalign\stopformula \stoptext Mojca luc-mkii.pdf Description: Adobe PDF document luc-mkiv.pdf Description: Adobe PDF document ___ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___