Here is an example:
top.tex contents:
Code:
\documentclass{report}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}
\begin{center}
\footnotesize
\newcolumntype{Y}{>{\raggedleft\arraybackslash}X}
\begin{tabularx} {#} {@{} l Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y@{}} \\
\topruleCode:
\bottomrule
\addlinespace[.75ex]
\end{tabularx}
\par
\scriptsize{\emph{Source: }#}
\normalsize
\end{center}
\end{document}Code:
sysuse nlsw88, clear tabout race union using table1.tex, /// cells(freq col) format(1) clab(Freq Col_%) /// replace /// style(tex) bt font(bold) cl1(2-7) cl2(2-3 4-5 6-7) /// topf(top.tex) botf(bot.tex) topstr(14cm) botstr(nlsw88.dta)
Code:
\documentclass{report}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}
\begin{center}
\footnotesize
\newcolumntype{Y}{>{\raggedleft\arraybackslash}X}
\begin{tabularx} {14cm} {@{} l Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y@{}} \\
\toprule
\begin{center}
\footnotesize
\newcolumntype{Y}{>{\raggedleft\arraybackslash}X}
\begin{tabularx} {14} {@{} l Y Y Y @{}}
\toprule
& \multicolumn{3}{c}{\textbf{union worker}}  \\
\cmidrule(l{1em}){2-4} 
 & \textbf{nonunion} & \textbf{union} & \textbf{Total} \\
\cmidrule(l{1em}){2-4} 
 & Freq & Freq & Freq \\
\midrule 
\textbf{race} \\
white & 1051.0 & 302.0 & 1353.0 \\
black & 350.0 & 151.0 & 501.0 \\
other & 16.0 & 8.0 & 24.0 \\
Total & 1417.0 & 461.0 & 1878.0 \\
\bottomrule
\end{tabularx}
\normalsize
\end{center}
\bottomrule
\addlinespace[.75ex]
\end{tabularx}
\par
\scriptsize{\emph{Source: }nlsw88.dta}
\normalsize
\end{center}
\end{document}I expected the contents of top.tex to replace this section of the output:
Code:
\begin{center}
\footnotesize
\newcolumntype{Y}{>{\raggedleft\arraybackslash}X}
\begin{tabularx} {14} {@{} l Y Y Y @{}}
\toprule
0 Response to tabout version 3 topf and botf options not working as expected
Post a Comment