TeX output: In some cases too many $ enclosed the text.