Render LaTex correctly