updated the equation code as TeX format