ENH: allow to_html, to_latex, and to_string to take a path for their first argument