minor fix for formula rendering in tex format