Math formatting is a very small piece of what LaTeX does.
The common tool for managing citation in a LaTeX document is called BibTeX. You enter details about your sources, and BibTeX will create your bibliography and will also make it easier to cite things in your paper.