Fix comments handling in LaTeX backend.