New answers tagged

2

This should be automatic if you have \usepackage{comment} or \usepackage{verbatim} in your preamble. At the time the question was asked, it was actually automatic only with \usepackage{comment}, but AUCTeX 12.3 onwards will do it for \usepackage{verbatim} as well. If you've just added the \usepackage command, run TeX-normal-mode (C-c C-n) to tell AUCTeX to ...


0

You have to use the propertize method for that. For exemple, in your case, to use the font-lock-builtin-face on the Keyword words, you can do: (save-excursion (goto-char (point-min)) (while (re-search-forward "^Keyword[0-9]:" nil t) (replace-match (propertize (match-string 0) 'face 'font-lock-builtin-face))))


Top 50 recent answers are included