Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: log2html smcl formatting TOC


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: log2html smcl formatting TOC
Date   Wed, 10 Aug 2011 16:37:39 +0100

-log2html- is a user-written program from SSC. Please remember to
specify where user-written programs you refer come from.

In both cases, I think you may need to do your own programming. The
purpose of -log2html- is only to convert to HTML with modest
formatting changes on the side. Its possibilities are limited to what
is documented. Or, you want something more like -outreg- (SSC), I
guess.

Nick

On Wed, Aug 10, 2011 at 3:41 PM, Jakob Petersen <jpeterb@essex.ac.uk> wrote:

> 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.)?
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index