various changes to html latex and rtf