https://5dok.net/document/y9609j4d-the-amsopn-package-michael-downes-version-v.html