ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: Yue Wang <yuleopen@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Hans Hagen <pragma@wxs.nl>
Subject: Re: Percent in mkii mathmode is rendering wrongly using lucida.
Date: Fri, 28 Dec 2012 02:18:46 +0100	[thread overview]
Message-ID: <CALBOmsYm_ALvbbAGVT=-uU5Je3_OXZCoswOWu44XTLSBZciX1A@mail.gmail.com> (raw)
In-Reply-To: <CA+C1juYm02Lra2iVXEy9G5SpxmSij=q5E8Fw9=D25RR__Yxvxg@mail.gmail.com>

On Fri, Dec 28, 2012 at 1:21 AM, Yue Wang wrote:
> Hi Hans,
>
> can you fix the problem? thanks a lot.
>
> test document:
> %mkii
> \usetypescript[lucida][texnansi]
> \setupbodyfont[lucida,12pt]
> \starttext
> 5\%  $5\%$
> \stoptext

Citing myself:

On Sat, Feb 20, 2010 at 6:22 AM, Mojca Miklavec wrote:
> On Tue, Dec 1, 2009 at 10:16, Hans Hagen wrote:
>> Yue Wang wrote:
>>
>>> I am writing my journal article using Lucida. The following code didn't
>>> work:
>>>
>>> \usetypescriptfile[type-buy]
>>> \usetypescript[lucida][texnansi]
>>> \setupbodyfont[lucida,12pt]
>>> \starttext $\Delta$\stoptext
>
> If I change
>         \definefontsynonym [MathRoman]     [LucidaBright]
> into
>     \definefontsynonym [MathRoman]     [LucidaNewMath-Roman] % LucidaBright
>
> it starts working, but probably break other things (would need a bit
> more extensive tests).
>
> Mojca

and it seems that *exactly that* change breaks it.

To start with, it's not only percentage sign. There are more. You
could start with constructions like
    \definemathsymbol [percent]  [nothing] [tf] [37]
in math-lbr.mkii. That works, but I'm not yet sure how to redefine the
character itself since the following doesn't work:
    \definemathcharacter [37]  [nothing] [tf] [37]

One needs to test

\usetypescript[lucida][ec]
\usetypescript[modern][ec]
\showfont[hlcrm]
\showfont[rm-lmr12]

and "redefine"/reassign all characters that are different than in LM.
An alternative is to change the font back to LucidaBright and redefine
all characters that are different there.

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
___________________________________________________________________________________


  reply	other threads:[~2012-12-28  1:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28  0:21 Yue Wang
2012-12-28  1:18 ` Mojca Miklavec [this message]
2013-01-01  4:49   ` Yue Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CALBOmsYm_ALvbbAGVT=-uU5Je3_OXZCoswOWu44XTLSBZciX1A@mail.gmail.com' \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.nl \
    --cc=yuleopen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).