update pdf and tex