switching to a new latex document