I am still trying to take only the minimal code for the superscript
and subscript option  from tex-font-lock-keywords-*



> Sent: Friday, January 15, 2021 at 9:35 PM
> From: "Christopher Dimech" <[email protected]>
> To: "Robert Pluim" <[email protected]>
> Cc: "help-texinfo gnu" <[email protected]>
> Subject: Re: tex-mode.el for setting superscript and subscript face
>
> Have tried using tex-font-lock-keywords-3.  But tex-font-lock-keywords-2 
> and tex-font-lock-keywords-1 seem to be doing too many things.  I only
> require the part where the superscripts and subscripts are shown in smaller
> font and placed at a different height level. 
> 
> (defconst tex-font-lock-keywords-3
>   (append tex-font-lock-keywords-2
>         '((tex-font-lock-match-suscript
>            (1 (tex-font-lock-suscript (match-beginning 0)) append))))
>   "Experimental expressions to highlight in TeX modes.")
> 
> > Sent: Friday, January 15, 2021 at 9:09 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 Thu, 14 Jan 2021 17:19:54 +0100, Christopher Dimech 
> > >>>>> <[email protected]> said:
> > 
> >     Christopher> I am having a problem introducing the 
> > tex-font-lock-keywords
> >     Christopher> and get the superscript-subscript functionality to work.
> > 
> > Show us what you tried, and people will help (although Iʼm not sure
> > help-texinfo is the right place for this)
> > 
> > Robert
> > 
> >
> 
>

Reply via email to