ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* wrong sign or spacing in math/mkiv (at least in Lucida)
@ 2010-09-30 20:01 Mojca Miklavec
  2010-09-30 20:25 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Mojca Miklavec @ 2010-09-30 20:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 777 bytes --]

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

[-- Attachment #2: luc-mkii.pdf --]
[-- Type: application/pdf, Size: 14044 bytes --]

[-- Attachment #3: luc-mkiv.pdf --]
[-- Type: application/pdf, Size: 13147 bytes --]

[-- Attachment #4: Type: text/plain, Size: 486 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: wrong sign or spacing in math/mkiv (at least in Lucida)
  2010-09-30 20:01 wrong sign or spacing in math/mkiv (at least in Lucida) Mojca Miklavec
@ 2010-09-30 20:25 ` Hans Hagen
  2010-09-30 20:55   ` Mojca Miklavec
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2010-09-30 20:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: wrong sign or spacing in math/mkiv (at least in Lucida)
  2010-09-30 20:25 ` Hans Hagen
@ 2010-09-30 20:55   ` Mojca Miklavec
  0 siblings, 0 replies; 3+ messages in thread
From: Mojca Miklavec @ 2010-09-30 20:55 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-30 20:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-30 20:01 wrong sign or spacing in math/mkiv (at least in Lucida) Mojca Miklavec
2010-09-30 20:25 ` Hans Hagen
2010-09-30 20:55   ` Mojca Miklavec

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).