Fixed latex rendering