Bookmark and Share

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


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

Re: st: Change Font of rtf-Files using Esttab


From   Bert Lloyd <bert.lloyd.89@gmail.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Change Font of rtf-Files using Esttab
Date   Thu, 13 Feb 2014 16:44:17 -0500

On Mon, Dec 17, 2012 at 4:37 AM, "Rita Frühwald" <metoka2@gmx.de> wrote:

>
> I am using esttab to export tables to an rtf-File.
> Is it possible to change the font (to "Verdana") of my exported tables with a command?
>

I just ran into this problem and came up with a possible solution
using the substitute() option (not explicitly noted in the esttab
help, but as an estout option it is available).

If you use notepad or another text editor to open an .rtf table
produced by esttab, you'll see the first line looks like this:

{\rtf1\ansi\deff0 {\fonttbl{\f0\fnil Times New Roman;}}

which suggests the following:

substitute("\fonttbl{\f0\fnil Times New Roman" "\fonttbl{\f0\fnil Verdana")

This has worked for me although I have not tested it extensively.

Best,
BL

PS -

estout and esttab from SSC

. which estout
c:\ado\plus\e\estout.ado
*! version 3.13  06aug2009  Ben Jann

. which esttab
c:\ado\plus\e\esttab.ado
*! version 2.0.5  09mar2009  Ben Jann
*! wrapper for estout

. about

Stata/SE 12.1 for Windows (64-bit x86-64)

*
*   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/


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