Upgrading latex file