Small improvements to latex rendering.