fixing up derivative tostring for LaTeX