I use Emacs to write LaTeX, and ran into the same problem as in this question, and for now I do as suggested in the questions answer. I've created some macros for making the process of adding the control characters more streamlined, however, I would want to be able to get rid of those characters entirely.
I want to develop some plugin that will find $
pairs, and make Emacs display them as LTR. I think if Emacs had a text-direction
attribute for faces, that would be a good solution, however its seems that doesn't exist. The next best thing I can think of is make Emacs display selected characters as two characters in the buffer (in my case that would be to present a $
as a $
and a control character), but my intuition tells me that won't affect the bidi algorithm.
Any ideas for how to achieve this?