Announcement

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

  • How to export contents of table to latex and exclude \begin{tabular} and \begin{table}?

    I usually hide some columns depending on the presentation. For example, I put the inner content of a table in a separate file in latex like "file.tex"
    A& B\\
    C&D
    and then, depending on the presentation, I might use
    \begin{table}[] \begin{tabular}{cH} \input{file.tex} \end{tabular} \end{table}
    the problem with esttab and estout is that they always export the outer part as well, i.e.
    \begin{table}[cc]
    \begin{tabular}{}
    \end{tabular}
    \end{table}

    Is there a way to tell them not to do that?
    Last edited by John Williamss; 24 Nov 2022, 16:43.

  • #2
    Read in the output of
    Code:
    help esttab##format
    look for the fragment option; I think that does what you want.

    Comment

    Working...
    X