From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Hesterberg Newsgroups: gmane.emacs.bugs Subject: Re: latex mode, nexted subscripts are unreadable Date: Wed, 12 Sep 2007 16:40:11 -0700 Message-ID: References: <200709121812.l8CICXf18901@f7.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1189640316 9788 80.91.229.12 (12 Sep 2007 23:38:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2007 23:38:36 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: karl@freefriends.org (Karl Berry) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 01:38:33 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IVbmw-0002dH-VR for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2007 01:38:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVbmw-0007hp-NS for geb-bug-gnu-emacs@m.gmane.org; Wed, 12 Sep 2007 19:38:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVbmt-0007hC-Ry for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2007 19:38:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVbms-0007fk-GC for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2007 19:38:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVbms-0007fh-BD for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2007 19:38:26 -0400 Original-Received: from sewinexch00.insightful.com ([70.98.76.55]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IVbms-0000D6-05 for bug-gnu-emacs@gnu.org; Wed, 12 Sep 2007 19:38:26 -0400 Original-Received: from THESTERBERG-XP.insightful.com ([172.16.100.61]) by sewinexch00.insightful.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 12 Sep 2007 16:40:12 -0700 In-reply-to: <200709121812.l8CICXf18901@f7.net> (karl@freefriends.org) X-OriginalArrivalTime: 12 Sep 2007 23:40:12.0614 (UTC) FILETIME=[43498660:01C7F596] X-Detected-Kernel: Genre and OS details not recognized. X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16546 Archived-At: Karl, Thanks for looking into this, and for the suggestion of customizing the faces. I tried customizing the superscript and subscript fonts, in two different ways: menu: Options : Customize Emacs : Specific Face modify-face I could change the height to 80 (i.e. 8 point font). This results in nested suscripts being the same size as the first-level suscripts, and so prevents the problem with fonts being too small. However, the raising and lowering was messed up. Now $a_{b^c}$ makes $c$ elevated at the same level as the $c$ in $a^c$; the raising is done relative to $a$ rather than to $b$. Maybe this is a separate bug? I also tried a relative value of 0.9. This resulted in smaller size changes, and fonts did not become unreadable until 5th level. However, this also leaves the raising and lowering messed up. I tried evaluating a modified defface definition (in a temporary file, not by changing tex-mode.el) but this had no effect. Tim >Hi Tim, > >Thanks for the report. > > the nested suscripts are visible, but are still too tiny for comfort. > And they're not clearly visible - the gray letters end up with most of > the pixels light gray and a few of them darker. > >Unfortunately neither I nor Juri were able to reproduce this on our >(non-Windows) systems. > >Is there an Emacs developer who works on Windows who could look into this? > > Is there a way to set a minimum font size for suscripts? > >Looking at tex-mode.el, it seems that faces named `subscript' and >`superscript' are used for this. By default, they are defined like this >(both are just the same except for the name): > > (defface subscript > '((t :height 0.8)) ;; :raise -0.3 > "Face used for subscripts." > :group 'tex) > >The :height is presumably what makes it proportional to the next "level" >up. So perhaps it would work to override these definitions by changing >those faces -- using customize is probably easiest -- to use an absolute >font size. > >Best, >Karl