I enjoy the inline math fontification that the AucTeX
TeX-latex-mode provides – both the theme-responsive coloring and visual indication for sub- and super-scripted math. I have worked in plain LaTeX for about a year or so, but I would like to migrate to Org mode for my math work (class notes and exercises). I am not satisfied with the plain, theme-insensitive coloring Org mode gives to inline math. I have read through some of
font-latex.el, but I don't know where to start in implementing this
TeX-latex-mode-style formatting for Org inline math. I could just use LaTeX source blocks – but that largely defeats the point of Org.
How can I link the existing fontifiers from
TeX-latex-mode to inline math in Org mode, with minimal code duplication?