asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum Import tex table generated by asdocx to main tex file

Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Andrew Zhao
    Post count: 1

    \input{} , \include{}, and \catchfile methods all don’t work for generated tex file (unlike esttab). I end up compiling all generated tablename.tex to pdf then insert them into my main.tex. But I don’t think this would be a good solution. Is there any way to easily insert generated latex table to other tex files for asdocx.

    Attaullah Shah
    Post count: 70

    Seems you need the tableonly option, that creates just the table without the file header and package list. For example

    asdocx cor Diaper GetupNight PutBabyToSleep PlayWithBaby , ///
    save(CorrCaringWork.tex) abb(.) title(\notitle) replace tableonly

    Also, in the master file where you call the input(), you should include the following lines to the package list

    \usepackage{tabularx, booktabs, threeparttable, caption}
    \captionsetup{font=bf, aboveskip=1ex, belowskip=2ex}

    I shall look into the table title(\i), obviously, it is not working.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.