change references to the
```
.. [1] foo ref
```
see https://github.com/sympy/sympy/wiki/Writing-documentation#examples