From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/60794 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: abbreviations as macros (Aditya Mahajan) Date: Sun, 8 Aug 2010 12:53:36 -0400 (EDT) Message-ID: References: <1509584533.2544808.1281281688518.JavaMail.fmail@mwmweb073> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1281286178 22213 80.91.229.12 (8 Aug 2010 16:49:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Aug 2010 16:49:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 08 18:49:37 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi945-0005uE-KQ for gctc-ntg-context-518@m.gmane.org; Sun, 08 Aug 2010 18:49:37 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 42C81CA1E1; Sun, 8 Aug 2010 18:49:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EgZajaSukFMv; Sun, 8 Aug 2010 18:49:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 252ABCA1D5; Sun, 8 Aug 2010 18:49:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 624C9CA1D5 for ; Sun, 8 Aug 2010 18:49:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JnMoFG47mgY2 for ; Sun, 8 Aug 2010 18:49:28 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by balder.ntg.nl (Postfix) with ESMTP id 6831ACA1D2 for ; Sun, 8 Aug 2010 18:49:28 +0200 (CEST) Original-Received: FROM [192.168.0.104] (c-71-235-82-170.hsd1.ct.comcast.net [71.235.82.170]) By hellskitchen.mr.itd.umich.edu ID 4C5EE016.8ECCE.3817 ; Authuser adityam; 8 Aug 2010 12:49:26 EDT In-Reply-To: <1509584533.2544808.1281281688518.JavaMail.fmail@mwmweb073> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:60794 Archived-At: On Sun, 8 Aug 2010, Armin Varmaz wrote: > Hi Aditya, > > can you tell me how I can ensure as in AMSmath that the font size in > abbreviations automatically match the font size of current text? see my > example below. > > Best Armin > > ******** EXAMPLE Shorter example showing what goes wrong: \definealternativestyle[ImportantStyle] [{\definedfont[Kurier-Bold at 24pt]}] \defineframedtext[important][style=ImportantStyle] \starttext \startimportant Math $x$ does not scale \stopimportant \stoptext The reason is that you only specified how to scale text. To get the right math scaling you have to use \switchtobodyfont. You can go about it in two ways \defineframedtext[important][style={\switchtobodyfont[24pt]\ImportantStyle}] (which will scale the math font, but not change it to Kurier-Bold). Or you can define a typescript for kurier-bold (see type-otf for examples), and then use \usetypescript[kurier-bold] \defineframedtext[important][style={\switchtobodyfont[kurier-bold,24pt]}] Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________