Remove latex generation from other modes