Changing formatting of the main document.