I am working on a minor mode that will use the superscipt and subscript functionality for texinfo-mode.
> Sent: Thursday, January 14, 2021 at 8:34 PM > From: "Robert Pluim" <[email protected]> > To: "Christopher Dimech" <[email protected]> > Cc: "help-texinfo gnu" <[email protected]> > Subject: Re: tex-mode.el for setting superscript and subscript face > > >>>>> On Wed, 13 Jan 2021 23:19:02 +0100, Christopher Dimech <[email protected]> > >>>>> 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 > >
