\documentclass[12pt]{article} % specifies type of document and font size (default size 10) \usepackage[margin=1.0in]{geometry} % sets all margins to 1in -- can be changed as desired \usepackage{setspace,relsize} % for latex(describe()) (Hmisc package) \usepackage{moreverb} % for verbatimtabinput -- LaTeX environment \usepackage{url} % for \url{} command \usepackage{amssymb} % for many mathematical symbols \usepackage[pdftex]{lscape} % for landscaped tables \usepackage{longtable} % for tables that break over multiple pages \title{Fill in title here} % to specify title \author{Your name, MS} % to specify author(s) \begin{document} % defines beginning of document % If .nw file contains graphs: To specify that EPS/PDF graph files are to be saved to 'graphics' sub-folder % NOTE: 'graphics' sub-folder must exist prior to Sweave step \SweaveOpts{prefix.string=graphics/plot} % If .nw file contains graphs: to modify (shrink/enlarge} size of graphics file inserted % NOTE: can be specified/modified before any graph chunk \setkeys{Gin}{width=1.0\textwidth} \maketitle % needed to make title \tableofcontents % inserts 'Table of contents' (section, sub-section, etc numbers and titles) \listoftables % inserts 'List of Tables' (numbers and captions) \listoffigures % inserts 'List of Figures' (numbers and captions) % NOTE: graph chunk must be wrapped with \begin{figure}, \end{figure}, and \caption{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Where other LaTeX documentation chunks and R code chunks are placed \end{document}