add routine fancy for TeX