Generation and presentation of formal mathematical documents door