fixed TeX syntax on functions