#delim ; version 14.2; * Crib for Stata 14 semicolon-delimited do-files for use with -dolog- and -htmlutil- *; clear all; set scheme rbn4mono; * Beginning of document-generating block *; local fname `"htmcrib14"'; local title `"My HTML document"'; tempname htmb1; sleep 1; htmlopen `htmb1' using `"`fname'.htm"', replace head body title(`"`title'"'); cap n {; * Output document title and initialize figure and table counters *; file write `htmb1' _n `"

`title'

"' _n `"

A. U. Thor, `c(current_date)'

"' _n; local figseq=0; local tabseq=0; }; htmlclose `htmb1', body; * End of document-generating block *; * Zip output files *; zipfile `"`fname'.htm"' `"`fname'_*.*"' , saving(`"`fname'.zip"', replace); exit;