In latex I need to type the sequence$G^{\{ x \}}$ to get the desired equation. The equation works fine, but after this spell check does not work for the remaining text. Spell check works fine before the occurrence of this word and works find if I delete such occurrence. If the same sequence occurs outside maths mode i.e not inside $ $, then there is no problem.

I get issues with syntax highlighting also after the occurrence of that sequence.
What is the issue here.

closed as unclear what you're asking by Joseph Wright♦Aug 4 '13 at 11:58

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.
If this question can be reworded to fit the rules in the help center, please edit the question.

I do not seem to be able to recreate your problem. I don't think it is particularly related with that exact sequence. Sometimes it happens in long files, that the syntax highlighting is messed up. Try executing :set ft=tex.
–
canaaerusSep 19 '12 at 6:26

That did not help. if i change the sequence to $G^{(x )}$ it works, so the problem is very particular about this sequence particularly \}` and \{.
–
DurgaDattaSep 19 '12 at 11:03

@DurgaDatta Does this problem still exist? Has there been an update that solved the problem? Does using \( and \) instead of $ help (see vonbrand’s answer)?
–
QrrbrbirlbelMar 5 '13 at 4:16

I think we need version numbers and more detail (exactly what needs to be done to get the issue) to help, and even then it's possibly more of a bug report than anything else.
–
Joseph Wright♦Aug 4 '13 at 11:58

1 Answer
1

I'd try \(G^{\{x\}}\). This style (\(...\) instead of $...$, \[...\] instead of $$...$$) is more robust (a forgotten end won't mess up reams of text, it is visually clearer where it starts/ends), and is less likely to mess up the editor's parsing.