modify lex for tex