Changed selected files to fix latex and pdf output.

With previous version, 'make latexpdf' produced some errors. The errors were minor and a pdf file
was eventually produced, however the Readthedocs builder produced an error message and was not able
to provide a valid pdf file that mirrors the website. Hopefully this is fixed now.