asdocx: Export from Stata to Word, Excel, LaTeX & HTML Forums asdocx Forum Export only the table part of TEX

Tagged: , , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Luis Pecht
    Participant
    Post count: 7

    It would be a great improvement if we were able to export only the table part of TEX, not the head. Perhaps, you can add the option tableonly
    With that, we would be able to append the asdocx text exported table to other TEX sections, on the saved text file, such as

    . collect export table1.tex, tableonly
    Dr. Attaullah Shah
    Keymaster
    Post count: 106

    On your suggestion, I have added tableonly option for exporting a table when the file format is .tex. This option specifies that only the table be exported to the specified file. Therefore, the exported .tex file will start at \begin{tabularx} and end at \end{tabularx}.

    To update to the latest version, type:

    asdocx_update

    The latest version as of now is
    *! asdocx : June 18, 2021: Version 1.6.5 : tableonly option for LaTeX |

    Luis Pecht
    Participant
    Post count: 7

    thks Professor.

    so, a possible commands sequence would be,

    
    asdocx tabulate x , save(asdocx_exported_table.tex) tableonly replace
    file open dd using "TEXFile.tex", write replace
    file write dd "\begin{frame}" _n
    file write dd "\frametitle{TITLE}" _n 
    file write dd "\tiny" _n 
    file write dd "\input{asdocx_exported_table.tex}" _n
    file write dd "\end{frame}" _n
    file close dd
    
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.