#25: manage format of whole document