Build latex files