fixed poorly escaped math environments
changed from textttf back to url because it didnt solve anythihng but even caused problems instead (undefined control sequence)