Added TOC.
Added figure list. Removed headings from empty pages.
Added support for a new math package for subequations.