complete work on require TeX preference