Automatic line breaking in LaTeX equations