Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • frmttable to write tables to LaTex

    Hi all

    I am currently using the user-written command frmttable (ssc install frmttable, by John Luke Gallup) in Stata 12 to create journal-like tables easily. When I include these tables into LaTex, compilation stops after the respective table, which is apparently due to the inclusion of a document (class) statement in the .tex statement by Stata.
    After manually excluding these lines, the LaTex compilation works fine, but I would like to know how I can avoid the manually correcting of these .tex files by not including these line a priori. Has anyone any experience with this command and issue?

    Many thanks for any suggestions
    Elisabeth

  • #2
    In follow-up to my previous post: the .tex file created by the command frmttable has a.o. the following lines of code:

    \documentclass{article} \usepackage{dcolumn}
    \usepackage{booktabs}
    \usepackage{longtable}
    \begin{document}

    ...
    \end{document}

    To be able to print several tables created through 'frmttable' I need to get rid of the \documentclass{} and \begin{} and \end{} commands. As I have many tables I want to get rid of these lines automatically. Is there any way to prevent Stata from adding these lines to the .tex file?

    Comment


    • #3
      Use filefilter.

      Comment


      • #4
        Thanks Sergiy for your very helpful reply!

        Comment

        Working...
        X