API fmtxt:  add tex() function
ENH testnd.t_contrast_rel:  better input checking
FIX WxTerm:  don’t quit if user cancels due to unsaved file