update main tex file