Get rid of unused settings.
Install required TeX packages.