API fmtxt:  add tex() function
ENH testnd.t_contrast_rel:  better input checking