Hello,
I would like to apply my own font-locking to footnotes in my documents. I want
the footnote
text to be smaller and set in a dimmer color to make it less obtrusive.
I first defined a new face:
(defface my-font-latex-footnote-face
'((t :foreground "MistyRose4" :height 0.9))
"Face used for footnotes."
:group 'font-latex-highlighting-faces)
Then I set `font-latex-user-keyword-classes':
(setq font-latex-user-keyword-classes
'(("my-footnote" (("footnote" "{")) 'my-font-latex-footnote-face command)))
Then I restarted Emacs.
Interestingly, the footnote text is now shown in a smaller font (so :height 0.9
works), but not
in the new foreground color. It is still fontified with
`font-lock-constant-face'.
In `font-latex.el' there is the customizable variable
`font-latex-deactivated-keyword-classes'.
But I don't want to deactivate the whole `reference' class, only change the
face used for the
footnote text. How can I achieve that?
Thanks!