[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: SSC Archive help files now available in HTML

From   Kit Baum <>
Subject   st: RE: SSC Archive help files now available in HTML
Date   Sun, 29 Mar 2009 11:14:50 -0400

Roger said

This is very impressive. Are there any plans to distribute a conversion package from .sthlp to .html on SSC? (Or even in official Stata, in case any StataCorp people are listening?)

You don't need one. Just do

log html foo.sthlp foo.html

which is all that my routine is doing in processing these files. This is the same trick used by -log2html-, which has been around for quite a while.

Here is a Mata function that converts all .hlp and .sthlp in the current working directory:

version 10.1
void function genhlpfiles()
        helpfiles = dir(".","files","*.*hlp")
        if (rows(helpfiles) > 0) {
helpnames = substr(helpfiles, 1, (strpos(helpfiles,".") :- 1))
        for(i=1; i<=rows(helpfiles); i++) {
cmd = "log html "+helpfiles[i]+" "+helpnames[i]+".html, replace"

Kit Baum   |   Boston College Economics & DIW Berlin   |
An Introduction to Stata Programming |
   An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index