docs: use aligned environment in math mode

The align environment doesn't play nicely with Sphinx's LaTeX output.
Merge pull request #71 from rjw57/fix-pdf-docs

docs: use aligned environment in math mode