\documentclass[12pt]{article} \newcommand{\bs}{$\backslash$} \begin{document} \section{Listing Variables using {\tt listtex} Command} Example : The following Stata command creates a \LaTeX file called list1.tex. \begin{verbatim} #delimit ; listtex write read math ses if female ==0 & prog ==1 using list1.tex, replace rstyle(tabular) head("\begin{tabular}{rrrr}"" \textit{Write} &\textit{Read}&\textit{Math}&\textit{Ses}\\\\") foot("\end{tabular}"); \end{verbatim} Once the \LaTeX file list1.tex is created we can included it in our \LaTeX file by using {\tt $\backslash$input\{list1\}}. Its output is shown on next page. \vspace{2mm} \input{list1} \end{document}