4

In my .emacs file, I have (global-prettify-symbols-mode), and if I visit a .el document, I see the lambda character instead of lambda.

My understanding is that in a .tex file I should see the beta character instead of \beta, but this does not seem to work. The auctex manual says that if global prettify symbols mode is enabled, then this should work automatically.

Any ideas of what could be going wrong?

Alex
  • 1,028
  • 5
  • 20
  • Is `prettify-symbols-mode` enabled in your `.tex` file? – caisah Sep 19 '16 at 19:22
  • Yes, it is. And I've tried disabling it and then re-enabling it. – Alex Sep 19 '16 at 19:22
  • Are you using Emacs 25? Apparently there were problems in 24 with prettify https://lists.gnu.org/archive/html/auctex/2016-03/msg00040.html – caisah Sep 19 '16 at 19:40
  • Yes, on Arch Linux (if it makes a difference) – Alex Sep 19 '16 at 20:38
  • I've just checked and you are right. When I disable and re-enable `prettify-symbols-mode` in my LaTeX buffer, the prettification works. Strangely, with the dev version of GNU AUCTeX, the prettification is there immediately when finding a new TeX file. But there are no changes at all wrt prettification between 11.89.5 and the dev version. Not sure what's the problem... – Tassilo Horn Oct 13 '16 at 18:23
  • My problem was fixed by disabling company-auctex. – Alex Oct 14 '16 at 14:03
  • This problem seems to be still happening with Emacs 25.1 and auctex-11.89.7. In my case, it only happens for certain document classes (such as "amsart", "beamer", but not "article"). Other font-lock customization added through TeX-mode-hook also tends to get lost in these document classes and only in them. If anyone wants to reproduce this, remember to set TeX-parse-self to t. – Jisang Yoo Nov 14 '16 at 20:03

0 Answers0