Latex completion in string, fix #8983

This enables Latex completion in strings as suggested in #8983.
This pull request fixes the mess in #8988.