On 3/18/2010 2:04 PM, Mikael Persson wrote:
On Thu, Mar 18, 2010 at 11:14 AM, Aditya Mahajan<adit...@umich.edu> wrote:
On Thu, 18 Mar 2010, Mikael Persson wrote:
Wow, Wolfgang, this is very nice! (I was fighting his some weeks ago,
and what I probably did wrong was that I did not regenerate the file
name database. Now the math is indeed italic and not upright.)
It is, however, not completely perfect. With the following example, I
get the attached result. I think the prime is too close to the f and
I don't know. Do they come out correctly with latex? If so, it may be a bug
in luatex's italic correction.
also, sin should be "upright" and not italic. Any ideas?
Try (Untested)
\definetypeface[charter][mm][math] [charter] [default] [text=rm]
Aditya
Thanks Aditya! The sin problem goes away with this!
Then, there is only the prime problem left (as far as I can see. I
should try this setup on a larger paper to see if something else looks
strange)
Best regards, Mikael
___________________________________________________________________________________
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
___________________________________________________________________________________
Thank you all. Still there is a problem with delimiters (which should be
upright) and \mfunction. Please see the attached file.
Mehdi
%\environment fag-math
\definetypeface [charter] [rm] [serif] [modern] [default]
\definetypeface [charter] [mm] [math] [charter] [default][text=rm]
\definetypeface [utopia] [rm] [serif] [modern] [default]
\definetypeface [utopia] [mm] [math] [utopia] [default][text=rm]
\definetypeface [garamond] [rm] [serif] [modern] [default]
\definetypeface [garamond] [mm] [math] [garamond] [default][text=rm]
\definemathcommand [AB] {{\mathblackboard A}}
\definemathcommand [AC] {{\mathcal A}}
\def\image{{\mathrm{Im}}}
\def\af{\mathfrak{a}}
\definemathcommand [closure] [nolop] {\mfunction{cl}}
\setupheads[align=middle]
\starttext
\subject{Latin Modern}
\startformula
c^2 = a^2(a[f]) + b^2 \AB\quad \AC\quad \image\quad \af\quad \closure
\stopformula
\startformula
\sum \int abc \alpha\beta\gamma \Theta\Sigma\Epsilon
\stopformula
\subject{Charter}
\switchtobodyfont[charter]
\startformula
c^2 = a^2(a[f]) + b^2 \AB\quad \AC\quad \image\quad \af\quad \closure
\stopformula
\startformula
\sum \int abc \alpha\beta\gamma \Theta\Sigma\Epsilon
\stopformula
\subject{Utopia}
\switchtobodyfont[utopia]
\startformula
c^2 = a^2(a[f]) + b^2 \AB\quad \AC\quad \image\quad \af\quad \closure
\stopformula
\startformula
\sum \int abc \alpha\beta\gamma \Theta\Sigma\Epsilon
\stopformula
\subject{Garamond}
\switchtobodyfont[garamond]
\startformula
c^2 = a^2(a[f]) + b^2 \AB\quad \AC\quad \image\quad \af\quad \closure
\stopformula
\startformula
\sum \int abc \alpha\beta\gamma \Theta\Sigma\Epsilon
\stopformula
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________