Timeline for Add parsing of latex-style .el file to LaTeX-hook using AUCTeX
Current License: CC BY-SA 4.0
11 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 7, 2023 at 18:17 | history | edited | gusbrs | CC BY-SA 4.0 | deleted 245 characters in body |
| Dec 7, 2023 at 18:14 | history | rollback | gusbrs | Rollback to Revision 2 | |
| Dec 7, 2023 at 10:52 | history | edited | gusbrs | CC BY-SA 4.0 | deleted 934 characters in body |
| Oct 9, 2023 at 18:29 | comment | added | gusbrs | @lukeflo Also, please add a self-answer to your TeX.SX question as well. I'd say that one is solved with just loading the style files then. And it's only fair that AUCTeX does not stay in the register as "not supporting expl3" when it actually does. It is not complete, true, but it is probably as good as it currently gets for any existing alternative. | |
| Oct 9, 2023 at 18:10 | comment | added | gusbrs | @lukeflo Ah, so it is indeed working. :-) Great! problem solved. And, yes font-latex-sedate-face is applied to all matches to font-latex-match-simple-command, which essentially catches anything that starts with \ and whose characters are valid in a macro name. So it is indeed the "catch all" macro face which you end up seeing if some other class face was not also applied on top of it. | |
| Oct 9, 2023 at 17:48 | comment | added | lukeflo | Ok, thanks. I was able to change the colour of the font-latex-sedate-face. It doesn't only affect latex3 commands but all unknown macros. At least it is much better recognisable that way. | |
| Oct 9, 2023 at 14:19 | comment | added | gusbrs | @lukeflo Mhm, as I commented at TeX.SX, as far as I can tell, expl3 macros should be fontified once you load the expl3 style file. Can you inspect the active faces on one of your files? (Use C-u C-x =). You should find font-latex-sedate-face among the faces. | |
| Oct 9, 2023 at 14:14 | vote | accept | lukeflo | ||
| Oct 9, 2023 at 14:13 | comment | added | lukeflo | I added your code and it parses xparse.el and therefore expl3.el on startup. Thanks. Only the syntax highlighting of latex3 code remains faint (dim gray). But of course, it is the solution to my question! | |
| Oct 9, 2023 at 14:04 | history | edited | gusbrs | CC BY-SA 4.0 | Remove unnecessary add-symbol |
| Oct 9, 2023 at 12:42 | history | answered | gusbrs | CC BY-SA 4.0 |