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, is already up and running.

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

st: New version of -rtfutil- on SSC

From   "Roger B. Newson" <>
To   "" <>,
Subject   st: New version of -rtfutil- on SSC
Date   Thu, 14 Feb 2013 20:33:34 +0000

Thanks as always to Kit Baum, a new version of the -rtfutil- package is now available for download from SSC. In Stata, use the -ssc- package to do this, or -adoupdate- if you already have an old version of -rtfutil-.

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 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
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

package rtfutil from

      rtfutil: Utilities for writing Rich Text Format (RTF) files

      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)
(click here to return to the previous screen)
*   For searches and help try:

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