I am typing a math document in Russian using Emacs 24.3.1 and AUCTeX 11.87. I am using the
russian-computer input method to type Russian. It would be very convenient to disable this input method inside math delimiters such as
\( \) so that inside formulas I automatically switch to typing English without pressing Ctrl-\. For example, I could type "Рассмотрим формулу \(\)" ("Consider the formula \(\)"), put the point between the parentheses and start typing
\forall. Currently, I would be typing
\ащкфдд, but I would like Emacs to recognize that I am inside a formula and switch off the Russian input method.
I suspect that this can be done using
texmathp from AUCTeX, but I am not sure if this is the most elegant method.
This question was asked on StackOverflow, but it was recommended there that I ask it here as well.