I'm using the following command in a LaTeX file to explicitly call a style file:
\bibliographystyle{$BSTINPUTS/IEEEtran}
Unfortunately emacs detects this as me entering math mode, but the latex interpreter doesn't complain because it understands the context.
This is more of an annoyance than anything since it turns my entire base tex file a single color defeating the purpose of color syntax highlighting.
Does anyone know a piece of elisp i could use to either alter latex mode or my .emacs file? Alternatively does anyone know of a way to "escape" the behavior of the $ symbol yet still get the interpreter to understand that this is an env variable?
$...$groups by means of syntactic fontification and, therefore, treats them in the same way as comments and strings. You can turn off syntactic fontification as a whole by settingfont-lock-keywords-onlytot, but this is normally not a good option. – mhp Oct 1 '11 at 22:01