Added very basic ability to put total pages in header/footer, using ###Total###. This most assuredly will not work except in a multi-pass environment, and I don't have a clue what the right way to do this is for roman numeral pages, but my current needs are for documents with Arabic numerals and a TOC, so this works for me at the moment.
Added very basic ability to put total pages in header/footer, using ###Total###.
This most assuredly will not work except in a multi-pass environment, and I
don't have a clue what the right way to do this is for roman numeral pages,
but my current needs are for documents with Arabic numerals and a TOC, so
this works for me at the moment.

Also, in my experience, most documents which require "Page 6 of 27" style
headers and footers are the same in having only Arabic numerals.  The TOC,
however, might be a sticking point.  Perhaps there is another way to force
a multipass build?



rafaelmartins/rst2pdf,rafaelmartins/rst2pdf