I'm exporting a LaTeX table from Stata and adding it into a document using the input command. However, I don't want the document to display the last column in this table. The table file is going to be regenerated (overwritten) on a regular basis and so I don't want to edit it every single time. Is there a way to not show the column without editing the table file itself?
table.tex:
\begin{table}[htbp]\centering
\def\sym#1{\ifmmode^{#1}\else\(^{#1}\)\fi}
\caption{Table}
\begin{tabular}{l*{3}{cc}}
...
\end{tabular}
\end{table}
main.tex:
\begin{document}
...
\input{table.tex}
...
\end{document}

luaprogtablepackage might be what you are looking for. Its fairly new and I have never used it, so I cannot give you specific solution. Docs say about modifying tables, maybe it will be helpfull. – Tomáš Kruliš Sep 21 '20 at 14:39sedor similar) and call that (with\write18) just before you call\input? – Marijn Sep 21 '20 at 15:03\begin{table}commands outside the file and leave only the contents. – John Kormylo Sep 21 '20 at 15:16\begin{table}commands so it would be annoying to delete that each time. – Parth Sep 21 '20 at 16:57