I am confident that I would only need something like (defconst tex-font-lock-keywords (tex-font-lock-match-suscript (1 (tex-font-lock-suscript (match-beginning 0)) append))) "Default expressions to highlight in TeX modes.")
But this gives me an error because of the numeric value 1 > Sent: Saturday, January 16, 2021 at 11:38 PM > From: "Christopher Dimech" <dim...@gmx.com> > To: "Christopher Dimech" <dim...@gmx.com> > Cc: "Robert Pluim" <rpl...@gmail.com>, "help-texinfo gnu" > <help-texinfo@gnu.org> > Subject: Re: tex-mode.el for setting superscript and subscript face > > I do nat think that I would need most of the contents in > tex-font-lock-keywords-* > > > Sent: Saturday, January 16, 2021 at 11:35 PM > > From: "Christopher Dimech" <dim...@gmx.com> > > To: "Christopher Dimech" <dim...@gmx.com> > > Cc: "Robert Pluim" <rpl...@gmail.com>, "help-texinfo gnu" > > <help-texinfo@gnu.org> > > Subject: Re: tex-mode.el for setting superscript and subscript face > > > > 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" <dim...@gmx.com> > > > To: "Robert Pluim" <rpl...@gmail.com> > > > Cc: "help-texinfo gnu" <help-texinfo@gnu.org> > > > 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" <rpl...@gmail.com> > > > > To: "Christopher Dimech" <dim...@gmx.com> > > > > Cc: "help-texinfo gnu" <help-texinfo@gnu.org> > > > > Subject: Re: tex-mode.el for setting superscript and subscript face > > > > > > > > >>>>> On Thu, 14 Jan 2021 17:19:54 +0100, Christopher Dimech > > > > >>>>> <dim...@gmx.com> 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 > > > > > > > > > > > > > > > > > >