Hello Statatalist

I just discovered the user-written -rtfutil- command from SSC, which seems to be
a powerful suite of commands for writing RTF files from within Stata with an
elaborate documentation explaining complicated stuff. I only want
to use -rtfutil- for simple stuff, like

1) appending a page break to an existing rtf file,

2) appending a heading to an existing rtf file, or

3) appendix a landscape section break to an existing rtf file?

Is that possible and does anyone know how to do it?

I am giving an example below that also uses the SSC -esttab- command.

Code:
// Open data
sysuse auto, clear

// Run regression 1
qui regress length trunk mpg
estimates store m1

// Create rtf file with Table
esttab m1 using tables.rtf, title(Table 1) replace

// Append a page break to tables.rtf
rtfutil???

// Append the heading "This is the section with Table 2" to tables.rtf
rtfutil??? "This is the section with Table 2"

// Run regression 2
qui regress length trunk foreign
estimates store m2

// Append Table 2 to tables.rtf
esttab m2 using tables.rtf, title(Table 2) append

// Run lots of regressions for a wide table
local i = 2
foreach x of varlist rep78 headroom trunk weight mpg displacement gear_ratio {
 local i = `i' + 1
 qui regress length
 estimates store m`i'
}

// Append a landscape section break to tables.rtf
rtfutil???

// Append Table 3 to tables.rtf
esttab m3 m4 m5 m6 m7 m8 m9 using tables.rtf, title(Table 3) append

// Append a portrait section break to tables.rtf
rtfutil???
Can rtfutil be used for this?

Thanks
Gobinda