Ivan, I've just noted that in the example I posted, AS's built-in escape function is inadequate for Mathtran e.g. it does not escape pluses. But the example stands in that it would be trivial to substitute a customized escape routine. James