convert equations to tex