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 auto
to the table_layout
. First update asdocx.
asdocx_update
Table layout : auto, autofit , fixed
table_layout(fixed)
means the width is the same for all columns in the table. It is similar to the ‘Fixed-Column Width‘ in MS Word.
table_layout(auto)
When auto
is specified, the column width automatically resizes to fit the window. It is similar to ‘AutoFit-Window‘ in MS Word
table_layout(autofit)
When 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"
to
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 table_layout(auto)
e.g.,
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