Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Roger B. Newson" <r.newson@imperial.ac.uk> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>, jann@soz.unibe.ch |
Subject | st: New version of -rtfutil- on SSC |
Date | Thu, 14 Feb 2013 20:33:34 +0000 |
The -rtfutil- package is described as below on my website. The new version adds a new module -rtfappend-, enabling the user to append -rtfutil- output to an existing RTF document. This new module allows the user to build .rtf documents sequentially, using both -rtfutil- and -estout- modules (such as -estadd-). For instance, the user might start with a .rtf preamble, containing complicated specifications of character set declaration, default font declaration, font tables, color tables, stylesheets, info groups, preliminary formatting commands, headers, footers, and other extra information. The user might then add -rtfutil- components, using -rtfappend-, -rtflink- and -rtfclose-, and -estout- components, using -esttab-. This allows the user to mix -estout- output (which most users seem to find easier to generate than -listtab- output) and linked graphs (which -rtflink- can do and which -estout- was never designed to do).
I would like to thank Ben Jann for writing the -esttab- module of the -estout- package, from which I lifted a few lines of code and adapted them to allow for the possibility that the final } character in a RTF document is not on a line of its own. (Microsoft Word routinely produces RTF documents with this annoying feature, at least on my Windows 7 Enterprise system.) I would also like to thank Amadou Diallo for suggesting (on Statalist) that something like -rtfappend- might be a good idea.
Best wishes Roger -- Roger B Newson BSc MSc DPhil Lecturer in Medical Statistics Respiratory Epidemiology and Public Health Group National Heart and Lung Institute Imperial College London Royal Brompton Campus Room 33, Emmanuel Kaye Building 1B Manresa Road London SW3 6LR UNITED KINGDOM Tel: +44 (0)20 7352 8121 ext 3381 Fax: +44 (0)20 7351 8322 Email: r.newson@imperial.ac.uk Web page: http://www.imperial.ac.uk/nhli/r.newson/ Departmental Web page: http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/ Opinions expressed are those of the author, not of the institution. --------------------------------------------------------------------------- package rtfutil from http://www.imperial.ac.uk/nhli/r.newson/stata11 --------------------------------------------------------------------------- TITLE rtfutil: Utilities for writing Rich Text Format (RTF) files DESCRIPTION/AUTHOR(S) The rtfutil package is a suite of file handling utilities for producing Rich Text Format (RTF) files in Stata, possibly containing plots and tables. These RTF files can then be opened by Microsoft Word, and possibly by alternative free word processors. The plots can be included by inserting, as linked objects, graphics files that might be produced by the graph export command in Stata. The tables can be included by using the listtab command, downloadable from SSC, with the handle() option. Author: Roger Newson Distribution-Date: 13february2013 Stata-Version: 11 INSTALLATION FILES (click here to install) rtfopen.ado rtfappend.ado rtfsect.ado rtflink.ado rtfhyper.ado rtfcumlist.ado rtfrstyle.ado rtfclose.ado rtfutil.sthlp rtfopen.sthlp rtfappend.sthlp rtfsect.sthlp rtflink.sthlp rtfhyper.sthlp rtfcumlist.sthlp rtfrstyle.sthlp rtfclose.sthlp --------------------------------------------------------------------------- (click here to return to the previous screen) * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/