Script for converting results to LaTeX