sysuse auto, clear tabout rep78 foreign using table10.tex, replace /// style(tex) font(italic) c(mean weight) f(0c) sum /// twidth(9) h1(Car type (mean weight in lbs.)) h3(nil) /// title(Table 10: Simple twoway summary table of means) /// fn(auto.dta)