outline copied from trim.tex