### Re: [NTG-context] Fraction with a fraction in the denominator


On 4 juin 2013, at 21:34, Hans Hagen pra...@wxs.nl wrote:
[…]
ok, a new feature for SB:

Thanks hans! Very nice feature. Wikified in
http://wiki.contextgarden.net/Command/fraction
but the output on the wiki is not correct since ConTeXt there is mkii.

Best regards: OK

\definemathfraction
[wfrac]
[margin=.25em]

\starttext

\startformula
\wfrac {
a
} {
\frac {
b
} {
c
}
}
\stopformula

\stoptext

-
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
-
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


### Re: [NTG-context] Fraction with a fraction in the denominator

Hoi Sander,

Sander wrote:
This gives basically three equally long division lines

The fraction line of a nested fractions is in fact shorter than that
of its parent fraction, but by a very small amout. This seems to be
the standard behaviour -- I tried the formula in LaTeX, and the
difference is just as small.

I agree with you that it would be nice if the difference were a bit
bigger in the case of continued fractions, but I suspect that would be
hard to automate. Anyway: below is a quick hack for manual adjustment.

(I've simplified your formula somewhat -- the one in your mail threw
some syntax errors to do with {} nesting, and the square roots made it
harder to make out the fraction line.)

Cheers,
Sietse

% Declare a new dimension variable

% Set dimen

% Needed for the formula
\def\VAR#1{\text{VAR}(#1)}

\startformula
\frac{
\mu_{Z}
}{
\VAR{Z}
}{
N_{\text{segments}}
}
\stopformula
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] Fraction with a fraction in the denominator


On 6/4/2013 3:04 PM, Sietse Brouwer wrote:

Hoi Sander,

Sander wrote:

This gives basically three equally long division lines

The fraction line of a nested fractions is in fact shorter than that
of its parent fraction, but by a very small amout. This seems to be
the standard behaviour -- I tried the formula in LaTeX, and the
difference is just as small.

I agree with you that it would be nice if the difference were a bit
bigger in the case of continued fractions, but I suspect that would be
hard to automate. Anyway: below is a quick hack for manual adjustment.

(I've simplified your formula somewhat -- the one in your mail threw
some syntax errors to do with {} nesting, and the square roots made it
harder to make out the fraction line.)

Cheers,
Sietse

% Declare a new dimension variable

% Set dimen

% Needed for the formula
\def\VAR#1{\text{VAR}(#1)}

\startformula
\frac{
\mu_{Z}
}{
\VAR{Z}
}{
N_{\text{segments}}
}
\stopformula

ok, a new feature for SB:

\definemathfraction
[wfrac]
[margin=.25em]

\starttext

\startformula
\wfrac {
a
} {
\frac {
b
} {
c
}
}
\stopformula

\stoptext

-
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
-
___
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



### Re: [NTG-context] Fraction with a fraction in the denominator


Sorry, I meant to write numerator. (In Dutch it is teller/noemer ;))

On 03-06-13 19:40, Sander Maijers wrote:

Hi,

How can I make the subfraction in the denominator of a fraction appear
smaller even though the nominator is very small? This gives basically
three equally long division lines:

\startfomula
\frac{\mu_{Z}}{\frac{\sqrt{\VAR{Z}}{\sqrt{N_{\text{segments}
\stopformula
___

to the Wiki!

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

___