auctex
[Top][All Lists]
Advanced

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

Highlighting \foo commands in math environments


From: Kauê da Silva Sena
Subject: Highlighting \foo commands in math environments
Date: Tue, 21 Dec 2021 16:18:43 -0300

Hi everyone,

I like to have macros highlighted inside math environments, the present behaviour however is for everything between \( and \) to be typeset with font-latex-math-face. I  have made changes to font-latex.el on my machine so that \foo commands which would be typeset with font-latex-math-face be with font-latex-sedate-face.

In my answer to my own question here, I logged what I did. Perhaps this could be merged or an option to have math commands highlighted differently could be added. Perhaps also an option to highlight \(,\),\[,\] differently too.

Should I submit a pull request? If so, how? I did not manage to find the way. I fear though the default behaviour is the one preferred and perhaps in that case some variable to toggle this special highlighting could be created.

Thanks in advance,
Kauê

reply via email to

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