I'm trying to export tables to LaTeX, using tabout.
This is the output:
However, when I compile my .tex document, I get the error "Misplaced alignment tab character &" for every '&' in test.tex.
I'm using tabout version 2.0.7, and I get the same behavior on Stata 12 and Stata 14.
Code:
sysuse auto tabout foreign using test.tex, c(freq cell cum) f(0c,1) style(tex) replace
Code:
Car type&No.&\%&\% \\ \hline Domestic&52&70&70 \\ Foreign&22&30&100 \\ Total&74&100& \\
Code:
\documentclass{article} \begin{document} \begin{table} \input{test.tex} \end{table} \end{document}
Comment