new version of variablengramextend.tex