Generate tex and CSV files. Better tex.