From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78802 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: math: \text does not scale properly Date: Sat, 20 Oct 2012 22:20:00 -0400 (EDT) Message-ID: References: <5B1C1F4E-3365-47D0-91D8-153560EFD188@imt.uni-luebeck.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350786016 8587 80.91.229.3 (21 Oct 2012 02:20:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Oct 2012 02:20:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 21 04:20:24 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TPl9M-0002ee-Pk for gctc-ntg-context-518@m.gmane.org; Sun, 21 Oct 2012 04:20:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E25A9101E5; Sun, 21 Oct 2012 04:20:15 +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 SKzpnnIaAJHk; Sun, 21 Oct 2012 04:20:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3640E101EA; Sun, 21 Oct 2012 04:20:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 266C7101EA for ; Sun, 21 Oct 2012 04:20:10 +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 xib6eEXt6nZQ for ; Sun, 21 Oct 2012 04:20:07 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 050B1101E5 for ; Sun, 21 Oct 2012 04:20:06 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q9L2K34n011170 for ; Sun, 21 Oct 2012 04:20:05 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096680684.dsl.bell.ca [65.94.4.236]) By hackers.mr.itd.umich.edu ID 50835BD2.4E807.2864 ; Authuser adityam; 20 Oct 2012 22:20:02 EDT In-Reply-To: <5B1C1F4E-3365-47D0-91D8-153560EFD188@imt.uni-luebeck.de> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08IdCk4RA - f4f8425c0bd9 - 20121021 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78802 Archived-At: On Thu, 4 Oct 2012, Andreas Mang wrote: > Hi there, > > As Aditya mentioned in a former posting (*) that "\text{ ... }" should > scale properly when used as super- or subscript, I have prepared a > minimal example to demonstrate that it doesn't. In my document I have > switched from "\text{ }" to "\normal", which works. There is another bug with \text. {\switchtobodyfont[sans] $\text{sans}$} does not switch to sans font. Both the incorrect scaling and wrong font switch can be corrected by restoring the old definition of \text in math-ini.mkiv. Based on the comments in that file, this will come at a high penalty on speed. (Slow but correct is better than fast but wrong!) \unprotect \def\math_text_choice_indeed#1#2#3% no \everymath ! {\hbox{\everymath{#1}\switchtobodyfont [#2]#3}} % 15 sec %{\hbox{\everymath{#1}\setcurrentfontbody{#2}#3}} % 3 sec (no math) \protect %% Example \starttext $f_{\text{text $a+b$}_{\text{text $a+b$}_{\text{text $a+b$}}}}$ {\switchtobodyfont[sans] $f_{\text{text $a+b$}_{\text{text $a+b$}_{\text{text $a+b$}}}}$} $f_{{\normal text}_{{\normal text}_{\normal text}}}$ \stoptext 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 ___________________________________________________________________________________