I am using the Stata user written command frmttable to create journal-like tables and to write them to LaTex. When I use the command \input{... .tex} the table is displayed like I want it, but LaTex stops compilation afterwards. Also, right before the table it mentions []article in the final pdf document. My code looks as following:
\documentclass[10pt,a4paper]{article}
\usepackage[round]{natbib}
\usepackage[parfill]{parskip}
\usepackage[margin=0.75in]{geometry}
\usepackage{lscape}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{dcolumn}
\usepackage{longtable}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{mathtools}
\usepackage{longtable}
\usepackage{hyperref}
\usepackage{verbatim}
\begin{document}
...
\begin{flushleft}
\input{Table.tex}
\end{flushleft}
\end{document}
I get the error 'Can be used only in the preamble ... \documentclass'. Is there a package I still need to install?
Table.tex
? From the error message I suspect there is\documentclass
statement inTable.tex
which is wrong in this caseTable.tex
file