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
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 -----------------------------------------------------------------
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
participants (2)
-
Hans Hagen
-
Mojca Miklavec