Converts data to LaTex formatted tables