Make Latex completion in strings
Merge pull request #9165 from dhoegh/Backport_latex_completion_strings

Backport of #8989 and #9137 squashed.