Source and build directory are seperate. References and footnotes are named. Other than that, tried to do no changes in the docs. Fixed multi label in proofs-index. Fixed most of the warnings in make html. HTML and PDF are building.