generalized TeX template