ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: math problems in last beta (cont-en and cont-xp)
Date: Mon, 23 Mar 2009 10:41:23 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.00.0903231033560.11835@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <a09128560903230251h479ef5f3g891cc352c43ebe5@mail.gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1836 bytes --]

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

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

  reply	other threads:[~2009-03-23 14:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-23  9:51 Lutz Haseloff
2009-03-23 14:41 ` Aditya Mahajan [this message]
2009-03-23 21:22 ` Hans Hagen
2009-03-24  9:38   ` Lutz Haseloff

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=alpine.LNX.2.00.0903231033560.11835@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /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).