Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • New version of htmlutil on SSC

    Thanks once again to Kit Baum, a new version of the htmlutil package is now available for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have an old version of htmlutil.

    The htmlutil package is described as below on my website. The new version adds extra options head, headattributes(head_attributes_list) and headfrom(filename) for the htmlopen module, allowing the user to open a HTML output file inserting a HTML head, which can be a minimal standard head or a customised head from a file. And new attributes body and bodyattributes(body_attributes_list) to the htmlopen module, allowing the user to open a HTML output file opening a HTML body. And a new attribute body for the htmlclose module, allowing the user to close a HTML body opened by htmlopen before closing the HTML output file. And new modules htmlimg to insert a HTML <img> tag to link an image into the HTML output file, and htmllink to insert a hyperlink into the HTML output file.

    Best wishes

    Roger


    -----------------------------------------------------------------------------
    package htmlutil from http://www.imperial.ac.uk/nhli/r.newson/stata10
    -----------------------------------------------------------------------------

    TITLE
    htmlutil: Utilities for writing Hypertext Markup Language (HTML) files

    DESCRIPTION/AUTHOR(S)
    The htmlutil package is a suite of file handling utilities for
    producing Hypertext Markup Language (HTML) files in Stata. The
    user can open the file for input using htmlopen, and close the file
    using htmlclose. In between these statements, the user can insert
    linked images from files using htmlimg, insert hypertext links
    using htmllink, insert HTML tables using the listtab package, and
    insert more HTML using the tfinsert package. The packages listtab
    and tfinsert are downloadable from SSC.

    Author: Roger Newson
    Distribution-Date: 06april2016
    Stata-Version: 10

    INSTALLATION FILES (click here to install)
    htmlclose.ado
    htmlimg.ado
    htmllink.ado
    htmlopen.ado
    htmlclose.sthlp
    htmlimg.sthlp
    htmllink.sthlp
    htmlopen.sthlp
    htmlutil.sthlp

    ANCILLARY FILES (click here to get)
    myhead1.htm
    -----------------------------------------------------------------------------
    (click here to return to the previous screen)



  • #2
    Not sure if you'd be interested, but I have Mata classes defined for all the HTML elements. I haven't tried writing any ado wrappers around the class objects, but I suspect it would be fairly trivial and could make it a bit easier to extend your current package more easily (e.g., an ado wrapper that could be used to construct an HTML form or something like that). The source is available at https://github.com/wbuchanan/matahtml.

    Comment


    • #3
      Many thanks for the URL. I'll check this out. Best wishes.

      Comment


      • #4
        Roger Newson not a problem. Thanks for all of the contributions you've made to the community.

        Comment

        Working...
        X