all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Hesterberg <timh@insightful.com>
To: karl@freefriends.org (Karl Berry)
Cc: bug-gnu-emacs@gnu.org
Subject: Re: latex mode, nexted subscripts are unreadable
Date: Fri, 14 Sep 2007 09:47:58 -0700	[thread overview]
Message-ID: <u8x79kxc1.fsf@insightful.com> (raw)
In-Reply-To: <200709140024.l8E0OAe04468@f7.net> (karl@freefriends.org)

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




  reply	other threads:[~2007-09-14 16:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-12 18:12 latex mode, nexted subscripts are unreadable Karl Berry
2007-09-12 22:34 ` Jason Rumney
2007-09-13  0:48   ` Tim Hesterberg
2007-09-13 15:03     ` Drew Adams
2007-09-26  7:41   ` Glenn Morris
2007-09-12 23:40 ` Tim Hesterberg
2007-09-14  0:24   ` Karl Berry
2007-09-14 16:47     ` Tim Hesterberg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-09-06 23:21 Tim Hesterberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u8x79kxc1.fsf@insightful.com \
    --to=timh@insightful.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=karl@freefriends.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.