changed html.cpp and latex.cpp to work with new MPRWriter interface