0

I've put

(setq org-highlight-latex-and-related '(latex script entities))

in my emacs config and yet $..$ that contain more than one symbol aren't highlighted properly:

How to fix?

  • Works for me with org-mode 9.1.13 (9.1.13-elpaplus). – Tobias May 23 '19 at 9:59
  • Evaluating org-version yields 9.2.1 for me. – George May 23 '19 at 15:54
  • 1
    Did you try $2+2=4$ without spaces? The notable thing is that LaTeX fragment delimiter $ are symmetrical unlike \( or \[. So they have to scan the full expression. Maybe the spaces split the expression. – Tobias May 23 '19 at 16:01
  • Both $2 + 2 = 4$ and $2+2=4$ don't highlight, but single characters like $2$ do highlight. Very strange behavior. – George May 23 '19 at 16:12
  • Did you try with emacs -Q and maybe M-x package-initialize? – Tobias May 23 '19 at 16:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.