Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: log2html smcl formatting TOC

From   Jakob Petersen <[email protected]>
To   [email protected]
Subject   st: log2html smcl formatting TOC
Date   Wed, 10 Aug 2011 15:41:14 +0100

I would like to produce summary statistics for a batch of files.
I am using log and log2html to format the results and have a couple of questions;

cap log close
log using sysdirvars,replace

sysuse dir
local allfiles "`r(files)'"
foreach f of local allfiles {
sysuse "`f'", clear
di _newline "{title:`f'}"
di "{title:Variable list}"
descsave, list(name varlab, clean noobs)

log close
log2html sysdirvars, replace title(Variables in Example Files)

1. Is it possible to suppress [input] from being printed in the log file (other than by changing the colour to white)? 2. Is it possible to format the headers in this example such that they could be used when creating a table of contents in a word processor (heading 1, heading 2, etc.)?

Many thanks in advance,


E: [email protected]

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index