automically insert TeX expression