generating proof trees typesetted in TeX