Fix headers and latex classes.