- if not package_available('morefloats', 'maxfloats=19'):
- # using old morefloats or none at all
- document.edoc.getroot().set('old-morefloats', 'yes')
+ if morefloats:
+ root.set('morefloats', morefloats.lower())
+ elif package_available('morefloats', 'maxfloats=19'):
+ root.set('morefloats', 'new')
+
+ # add customizations
+ if customizations is not None:
+ root.set('customizations', u','.join(customizations))
+
+ # add editors info
+ root.set('editors', u', '.join(sorted(
+ editor.readable() for editor in document.editors())))
+ if document.book_info.funders:
+ root.set('funders', u', '.join(document.book_info.funders))
+ if document.book_info.thanks:
+ root.set('thanks', document.book_info.thanks)