From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Math typesetting problems
Date: Sat, 06 Apr 2013 23:35:43 +0200 [thread overview]
Message-ID: <5160952F.3030203@wxs.nl> (raw)
In-Reply-To: <20130128232048.GA7470@khaled-laptop>
On 1/29/2013 12:20 AM, Khaled Hosny wrote:
> On Mon, Jan 28, 2013 at 09:33:52PM +0100, Wolfgang Schuster wrote:
>>
>> The \frac command uses \vcenter for the content while \dfrac and
>> \tfrac only set the mathstyle before placing the content with the
>> \over primitive.
>
> The use of \vcenter seems odd here as it means the fraction rule will no
> longer guranteed to be centered around the math axis:
> \starttext
> \math{-\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a}}
> \stoptext
>
> Also, why \frac is forcing text style fractions even in display mode?
> \starttext
> \startformula
> -\frac{a^{2^{2^2}}}{a} {a^{2^{2^2}}\over a}
> \stopformula
> \stoptext
>
> Both behaviours are different from MkII.
I redid the mkiv code ... configurable, defineable, inheritable ... the
whole lot
\starttext
\definemathfraction[myfrac] [mathstyle=script]
\definemathfraction[myfracx][mathstyle=script,alternative=outer]
\startformula
{a^{2^{2^2}}\over a}
\frac{a^{2^{2^2}}}{a}
\frac{a^{2}}{b}
\myfrac{a^{2}}{b}
\myfracx{a^{2}}{b}
\stopformula
\stoptext
-----------------------------------------------------------------
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-04-06 21:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-27 11:52 Janne Junnila
2013-01-27 12:09 ` Sietse Brouwer
2013-01-27 13:11 ` Janne Junnila
2013-01-27 14:50 ` Rogers, Michael K
2013-01-27 15:13 ` Roland Thiers
2013-01-28 9:11 ` Janne Junnila
2013-01-28 17:34 ` Roland Thiers
2013-01-28 19:41 ` Aditya Mahajan
2013-01-28 20:33 ` Wolfgang Schuster
2013-01-28 20:48 ` Aditya Mahajan
2013-01-28 20:59 ` Wolfgang Schuster
2013-01-28 23:20 ` Khaled Hosny
2013-04-06 21:35 ` Hans Hagen [this message]
2013-01-28 20:56 ` Otared Kavian
2013-01-28 21:09 ` Aditya Mahajan
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=5160952F.3030203@wxs.nl \
--to=pragma@wxs.nl \
--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).