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