Sometimes you must export using from Stata to Latex very long or very large regression tables such that it does not fit into a single page. This commonly happens in preliminary analysis is you keep a maximum of control variables and tests various models side by side. One solution is to modify fonts manually in the Latex output ResultsTable.tex file by adding \footnotesize or \tiny after \caption:
\begin{table}[htbp]\centering
\caption{Main Results} \footnotesize
\begin{tabular}{l*{3}{c}}
But this must be repeated each time a modification is made to the table.
What would be the approach to modify the Latex's font size directly into STATA using the esttab package?
esttab m1 m2 m3 m4 m5 m6 m7 m8 using "ResultsTable.tex", replace booktabs compress
Thank you for any advice on this!
esttab
are documented inhelp esttab
. If this doesn't allow enough flexibility you can read in the resulting tex file usingimport delimited
and add your changes usingreplace if
– Wouterprehead
andpostfoot
), but for edits to the "head" the answer below is also nice, and would suffice. – Arthur Morris