From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29146 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Extend the fraction bar Date: Wed, 5 Jul 2006 00:22:24 -0400 (EDT) Message-ID: References: <44A7A74E.80509@elvenkind.com> <51479903-B08A-448B-AED4-55CCD3D1E4C1@cox.net> <3604EDC0-49E5-4BA9-B92B-6EDF17B93A61@cox.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152073489 12831 80.91.229.2 (5 Jul 2006 04:24:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Jul 2006 04:24:49 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 05 06:24:46 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FxywM-00061Y-N6 for gctc-ntg-context-518@m.gmane.org; Wed, 05 Jul 2006 06:24:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5D3B912843; Wed, 5 Jul 2006 06:24:41 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25049-03; Wed, 5 Jul 2006 06:24:40 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D183612838; Wed, 5 Jul 2006 06:22:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2AC8712838 for ; Wed, 5 Jul 2006 06:22:35 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24476-04-3 for ; Wed, 5 Jul 2006 06:22:30 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id ECCEC12837 for ; Wed, 5 Jul 2006 06:22:29 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY skycaptain.mr.itd.umich.edu ID 44AB3E82.25A89.22476 ; 5 Jul 2006 00:22:27 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <3604EDC0-49E5-4BA9-B92B-6EDF17B93A61@cox.net> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29146 Archived-At: > Question. Is this genfrac identical to the one in ams definitions? AFAIK, yes. The syntax of genfrac is \genfrac{left-delim}{right-delim}{bar-thickness}{mathstyle}{numberator}{denominator} in both context and ams. One difference is that in amsmath, for mathstyle you can use integer vales 0-3 as a shortcut for \displaystyle, textstyle, scriptstyle and scriptscriptscript style. Context does not follow this, which I think is a good thing. Aditya > 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. >> >> Aditya >> >> >> >> >> >>> 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@ntg.nl >>>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> >>> _______________________________________________ >>> ntg-context mailing list >>> ntg-context@ntg.nl >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> >>> >>> >> >> -- >> Aditya Mahajan, EECS Systems, University of Michigan >> http://www.eecs.umich.edu/~adityam || Ph: 7342624008 >> _______________________________________________ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > > -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008