Export flexmat file with asdocx to Word, Excel, or LaTeX


Once the flexmat file is ready, it can be then exported to any of the asdocx’s supported formats, that include MS Word, Excel, or LaTeX. Following is the asdocx syntax for exporting flexmat files.

asdocx exportflexmat, [asdocx_options] [push]

Both exportflex or exportflexmat are accepted as sub-commands with asdocx. Since the default output format is .docx, therefore, if just typed:

asdocx exportflex

the flexmat file will be exported to a docx Word file format. In case we wish to send the output to an Excel file, then we would use the asdocx option save(Myfile.xlsx). For example:

asdocx exportflex, save(Myfile.xlsx)

We can also use other asdocx options such as font(font_name)  to change the font family or fs(#) to set the font size of the document [see other options here].

Finally, we can use the option push to add the flexmat file to the current stack of the asdocx contents. Therefore, if you have already generated summary statistics, correlation tables, and regression tables, the flexmat file will be added to sequence of these outputs as one additional table.

Next: How to use flexmat inside asdocx