help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tex-mode.el


From: tomas
Subject: Re: tex-mode.el
Date: Tue, 9 Feb 2021 21:13:15 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Feb 09, 2021 at 07:26:14PM +0100, Christopher Dimech wrote:
> 
> 
> 
> > Sent: Wednesday, February 10, 2021 at 6:15 AM
> > From: "Emanuel Berg via Users list for the GNU Emacs text editor" 
> > <help-gnu-emacs@gnu.org>
> > To: help-gnu-emacs@gnu.org
> > Subject: Re: tex-mode.el
> >
> > Christopher Dimech wrote:
> >
> > > Have been trying to disable the "suscript" option
> >
> > OK, one step at a time, what option is that, exactly?
> >
> > And what does it do that you don't want?
> 
> tex-font-lock-match-suscript matches superscripts (matching part following ^)
> and subscripts (matching part following _).  An example is "\alpha^i" and
> "\beta_j".
> 
> Then "tex-font-lock-suscript" elevates the letter "i" and lowers the letter
> "j".
> 
> I want to have a function that displays the text normally, without having
> to change the major mode.

Perhaps you're better off by tweaking those variables:

    (defcustom tex-font-script-display '(-0.2 0.2)
      "How much to lower and raise subscript and superscript content.
    This is a list of two floats.  The first is negative and
    specifies how much subscript is lowered, the second is positive
    and specifies how much superscript is raised.  Heights are
    measured relative to that of the normal text."
      :group 'tex
      :type '(list (float :tag "Subscript")
                   (float :tag "Superscript"))
      :version "23.1")

(defined in tex-mode.el) -- try '(0.0 0.0) to lower/raise sub-/superscripts by
zero, and

    (defcustom tex-suscript-height-ratio 0.8
      "Ratio of subscript/superscript height to that of the preceding text.
    In nested subscript/superscript, this factor is applied repeatedly,
    subject to the limit set by `tex-suscript-height-minimum'."
      :type 'float
      :group 'tex
      :version "23.1")

(likewise) -- try 0.0 to keep the size equal to the main font. Something
like

  (setq tex-font-script-display '(0.0 0.0))
  (setq tex-suscript-height-ratio 1.0)

or its custom equivalent (maybe via the customize interface?)

Cheers
 - t

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]