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: Fri, 14 Sep 2007 09:47:58 -0700 Message-ID: References: <200709140024.l8E0OAe04468@f7.net> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1189788866 32080 80.91.229.12 (14 Sep 2007 16:54:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 16:54:26 +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 Fri Sep 14 18:54:22 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 1IWEJB-0003Ub-3A for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2007 18:46:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWEJA-0006fr-E6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2007 12:46:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IWEJ5-0006eh-2o for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2007 12:46:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IWEJ3-0006dT-G0 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2007 12:46:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWEJ3-0006dQ-AZ for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2007 12:46:13 -0400 Original-Received: from sewinexch00.insightful.com ([70.98.76.55]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IWEJ3-00042A-0D for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2007 12:46:13 -0400 Original-Received: from THESTERBERG-XP.insightful.com ([172.16.100.61]) by sewinexch00.insightful.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 14 Sep 2007 09:48:00 -0700 In-reply-to: <200709140024.l8E0OAe04468@f7.net> (karl@freefriends.org) X-OriginalArrivalTime: 14 Sep 2007 16:48:00.0982 (UTC) FILETIME=[02E97760:01C7F6EF] 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:16557 Archived-At: Thanks. I think I'm set now. (1) I've now added this to my .emacs latex-mode-hook ; Modify ratio of font sizes for suscripts; I was getting ; small unreadable nested fonts with these at the default 0.8 (set-face-attribute 'subscript nil :height '0.82) (set-face-attribute 'superscript nil :height '0.82) That should be enough for my use; thanks for your suggestion. .82 is enough to handle nested subscripts; .88 would handle an extra level of nesting. I'm using the default Courier New 10 as my normal font. (2) I mentioned the "separate bug" about raising of nested suscripts. I thought this only occurred after changing the height attribute; but this occurs even without that, it just wasn't apparent to me before (sorry). I don't think this is that important, and my guess is that the programming required to handle differential raising of different levels of nested suscripts would get onerous, and might affect performance. Hence it is probably not worth the time it would take to do. Thank you very much. Tim > I tried evaluating a modified defface definition (in a temporary file, > not by changing tex-mode.el) but this had no effect. > >I believe that defface is like defvar et al; if the symbol is already >defined, it won't do anything. You can call modify-face or >set-face-attribute from Elisp to change existing faces. > > $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? > >Maybe. I believe this is the code in tex-mode.el that does the raising >and lowering. I don't see any reason offhand for the different face to >affect it, but unfortunately I really can't say for sure. > >(defun tex-font-lock-suscript (pos) >... > >Best, >Karl