fix reference alignment and footnoting