Added restriction to TeX/LaTeX for the brackets in math mode