Fix spelling. Add new macro which works out where to put TeX files.