asdocx: Export from Stata to Word, Excel, LaTeX & HTML › Forums › asdocx Forum › Table size and table layout in adocx › Reply To: Table size and table layout in adocx
I have updated asdocx and have added option
table_layout. First update asdocx.
Table layout : auto, autofit , fixed
means the width is the same for all columns in the table. It is similar to the ‘Fixed-Column Width‘ in MS Word.
auto is specified, the column width automatically resizes to fit the window. It is similar to ‘AutoFit-Window‘ in MS Word
autofit is specified, the table width is determined by the overall table layout algorithm, which automatically resizes the column width to fit the contents. In MS Word parlance, it is similar to ‘AutoFit-Contents‘ .
The default is layout(fixed). To set table layout to
auto permanently , change the following line in the
asdocx_defaults.do file from
global table_layout "fixed"
global table_layout "auto"
If you want to change it just for a specific table or in the current Stata session, then use the option
asdocx sum AD TD ED FD ta, detail replace table_layout(auto) fs(10)
You may like to read more about session and permanent option here