improve LaTeX rendering