help-texinfo
[Top][All Lists]
Advanced

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

Re: tex-mode.el for setting superscript and subscript face


From: Robert Pluim
Subject: Re: tex-mode.el for setting superscript and subscript face
Date: Thu, 14 Jan 2021 09:34:46 +0100

>>>>> On Wed, 13 Jan 2021 23:19:02 +0100, Christopher Dimech <dimech@gmx.com> 
>>>>> said:

    Christopher> I am trying to find the part of the code in tex-mode.el that 
recognises
    Christopher> the superscript parts "^{}" and the subscript part "_{}" so as 
to use
    Christopher> a different face.

Why do you need the code?

    (defface superscript
      '((t :height tex-suscript-height)) ;; :raise 0.2
      "Face used for superscripts."
      :group 'tex)
    (defface subscript
      '((t :height tex-suscript-height)) ;; :raise -0.2
      "Face used for subscripts."
      :group 'tex)

Robert



reply via email to

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