Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: tabout with latex option


From   Devra Golbe <[email protected]>
To   statalist <[email protected]>
Subject   st: tabout with latex option
Date   Thu, 24 Apr 2008 08:30:46 -0400

Any idea why the second tabout results are missing the closing tex lines? I can't see a difference in my code (and neither can the colleague I asked to take a second look.)

Thanks,
Devra

.
tabout firstyr lastyr using presentation\tab1.tex if firmtag, ///
> c(freq) f(0) style(tex) body replace

Table output written to: presentation\tab1.tex

\documentclass{article}
\usepackage{multicol}
\begin{document}
\begin{tabular}{lrrrrrrr}
\hline
& \multicolumn{7}{c}{Last Meeting} \\
First Meeting&1996&1997&1998&1999&2000&2001&Total \\
&No.&No.&No.&No.&No.&No.&No. \\
\hline
1996&54&36&42&69&46&504&751 \\
1997&0&2&3&6&1&31&43 \\
1998&0&0&15&32&18&236&301 \\
1999&0&0&0&3&0&9&12 \\
2000&0&0&0&0&2&47&49 \\
Total&54&38&60&110&67&827&1156 \\
\hline
\end{tabular}
\end{document}

.
. label var sic1d "1-digit industry"
. tabout sic1d using presentation\tab2.tex if firmtag, ///
> c(freq) f(0) style(tex) body replace

Table output written to: presentation\tab2.tex

\documentclass{article}
\usepackage{multicol}
\begin{document}
\begin{tabular}{lr}
\hline
1-digit industry&No. \\
\hline
1&91 \\
2&206 \\
3&388 \\
4&129 \\
5&168 \\
6&30 \\
7&97 \\
8&47 \\
Total&1156 \\

.

______________________________________________________________
Devra L. Golbe, Professor Dept. of Economics Hunter College / CUNY
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index