[Text Selection] Fixed problem with LaTeX