edits to tex files to avoid errors.