# [NTG-context] Extend the fraction bar

David Arnold dwarnold45 at cox.net
Wed Jul 5 06:15:32 CEST 2006

Question. Is this genfrac identical to the one in ams definitions?

On Jul 4, 2006, at 9:08 PM, Aditya Mahajan wrote:

> On Tue, 4 Jul 2006, David Arnold wrote:
>
>> Taco, Mojca,
>>
>> Thanks for the response on lengthening the main fraction bar? Any way
>> to make the main fraction bar wider?
>>
>> There is a genfrac command in amslatex. Anything similar in Context?
>
> m-newmat.tex defines genfrac.
>
> \usemodule[newmat]
>
> \def\bigfrac{\genfrac{}{}{2pt}\displaystyle}
>
> \starttext
>
> \startformula
>    \bigfrac{100}{200} \text{ vs } \frac{100}{200}
> \stopformula
>
> \stoptext
>
>
> Adjust 2pt to something that suits you.
>
>
>
>
>
>
>> On Jul 2, 2006, at 4:00 AM, Taco Hoekwater wrote:
>>
>>> David Arnold wrote:
>>>> All,
>>>>
>>>> How can I extend the main fraction bar in the following expression,
>>>> making it a tad longer?
>>>
>>> Just add a bit of whitespace to the right and left:
>>>
>>>    \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}
>>>          {\,\dfrac{4x^3-9x}{2x^2+5x-12}\,}
>>>
>>> You may want to add a \vphantom command as well to separate the
>>> fractions from the main bar a bit more.
>>>
>>>
>>>   \dfrac{\,\dfrac{9+3x-2x^2}{x^2-16}\,}{\,\dfrac{4x^3-9x}{2x^2
>>> +5x-12}\,}.
>>>> \placeformula
>>>> \startformula
>>>> \dfrac{\dfrac{9+3x-2x^2}{x^2-16}}{\dfrac{4x^3-9x}{2x^2+5x-12}}.
>>>> \stopformula
>>> _______________________________________________
>>> ntg-context mailing list
>>> ntg-context at ntg.nl
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>> _______________________________________________
>> ntg-context mailing list
>> ntg-context at ntg.nl
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>
>>
>>
>
> --
> Aditya Mahajan, EECS Systems, University of Michigan