Write new document so that all levels are specified in one document.