write tex report