hack for updating tex file with sorted list